diff test/suite_aggrs/main.c @ 435:a29baee68340

- suite_aggrs: simplified nested struct handling given upcoming api simplification (still not in depo, though, so test is ahead)
author Tassilo Philipp
date Mon, 24 Jan 2022 12:41:27 +0100
parents 3d2c5d156d78
children b4ddad459690
line wrap: on
line diff
--- a/test/suite_aggrs/main.c	Sun Jan 23 23:20:02 2022 +0100
+++ b/test/suite_aggrs/main.c	Mon Jan 24 12:41:27 2022 +0100
@@ -71,7 +71,7 @@
     sig += len;
 
 	rtype_st_cmp = G_agg_cmpfuncs[i];
-    rtype_st = ((DCstruct*(*)())G_agg_newdcstfuncs[i])(NULL);
+    rtype_st = ((DCstruct*(*)())G_agg_newdcstfuncs[i])();
     dcBeginCallStruct(p, rtype_st, DC_FALSE);
   }
   else
@@ -98,7 +98,7 @@
           printf("unknown sig at '%s' ;", sig);
           return 0;
         }
-        DCstruct *st = ((DCstruct*(*)())G_agg_newdcstfuncs[i])(NULL);
+        DCstruct *st = ((DCstruct*(*)())G_agg_newdcstfuncs[i])();
         dcArgStruct(p, st, K_a[pos]);
         sig += len-1; /* advance to next arg char */
         break;