must use static declarations for variables passed back (from tef@ucsfcgl)
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Sat, 18 May 1985 08:25:10 +0000 (00:25 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Sat, 18 May 1985 08:25:10 +0000 (00:25 -0800)
SCCS-vsn: sbin/restore/interactive.c 3.4

usr/src/sbin/restore/interactive.c

index 5594138..cbb2bd4 100644 (file)
@@ -1,7 +1,7 @@
 /* Copyright (c) 1985 Regents of the University of California */
 
 #ifndef lint
 /* Copyright (c) 1985 Regents of the University of California */
 
 #ifndef lint
-static char sccsid[] = "@(#)interactive.c      3.3     (Berkeley)      %G%";
+static char sccsid[] = "@(#)interactive.c      3.4     (Berkeley)      %G%";
 #endif not lint
 
 #include "restore.h"
 #endif not lint
 
 #include "restore.h"
@@ -392,7 +392,7 @@ expandarg(arg, ap)
        char *arg;
        register struct arglist *ap;
 {
        char *arg;
        register struct arglist *ap;
 {
-       struct afile single;
+       static struct afile single;
        int size;
 
        ap->head = ap->last = (struct afile *)0;
        int size;
 
        ap->head = ap->last = (struct afile *)0;