Cast the return from alloca to work better on UNICOS.
authorDavid Dykstra <dwd@samba.org>
Sat, 11 Jan 2003 19:01:31 +0000 (19:01 +0000)
committerDavid Dykstra <dwd@samba.org>
Sat, 11 Jan 2003 19:01:31 +0000 (19:01 +0000)
popt/poptconfig.c

index 58ccf01..d6603e5 100644 (file)
@@ -18,7 +18,7 @@ static void configLine(poptContext con, char * line)
     /*@=type@*/
     const char * entryType;
     const char * opt;
-    poptItem item = alloca(sizeof(*item));
+    poptItem item = (poptItem) alloca(sizeof(*item));
     int i, j;
     
     memset(item, 0, sizeof(*item));