summaryrefslogtreecommitdiff
path: root/popt
diff options
context:
space:
mode:
authorDavid Dykstra <dwd@samba.org>2003-01-11 14:39:41 +0000
committerDavid Dykstra <dwd@samba.org>2003-01-11 14:39:41 +0000
commit451b5fc969100e9866f74dac71e9b6bda5af5324 (patch)
tree31ddf9e9fb8aefce82a3aaf342144c990979cc7d /popt
parent1e678fcab161730cfbd92b5760bd7df285ef31cc (diff)
downloadrsync-451b5fc969100e9866f74dac71e9b6bda5af5324.tar.gz
Cast the return of alloca to remove a fatal error on Cray UNICOS.
Diffstat (limited to 'popt')
-rw-r--r--popt/popt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/popt/popt.c b/popt/popt.c
index 962f9732..c6672b7a 100644
--- a/popt/popt.c
+++ b/popt/popt.c
@@ -1054,7 +1054,7 @@ poptContext poptFreeContext(poptContext con)
int poptAddAlias(poptContext con, struct poptAlias alias,
/*@unused@*/ int flags)
{
- poptItem item = alloca(sizeof(*item));
+ poptItem item = (poptItem) alloca(sizeof(*item));
memset(item, 0, sizeof(*item));
item->option.longName = alias.longName;
item->option.shortName = alias.shortName;