X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;ds=sidebyside;f=compat%2Flib%2Ffstab.c;h=2a601d52af9a8024393fe9c609750537d9ac04f3;hb=11856e771fadee7ddb9b5a613c91f562bf363da7;hp=b3a21f0c66c074d78e87c158cfdb53f40896f0a2;hpb=8954518fe88156827aa958745ba1eb9cea4b42fa;p=dump.git diff --git a/compat/lib/fstab.c b/compat/lib/fstab.c index b3a21f0..2a601d5 100644 --- a/compat/lib/fstab.c +++ b/compat/lib/fstab.c @@ -2,7 +2,8 @@ * Ported to Linux's Second Extended File System as part of the * dump and restore backup suit * Remy Card , 1994-1997 - * Stelian Pop , 1999-2000 + * Stelian Pop , 1999-2000 + * Stelian Pop - AlcĂ´ve , 2000-2002 */ /* @@ -40,9 +41,10 @@ #ifndef lint static const char rcsid[] = - "$Id: fstab.c,v 1.7 2000/08/20 19:41:24 stelian Exp $"; + "$Id: fstab.c,v 1.12 2002/01/16 09:32:14 stelian Exp $"; #endif /* not lint */ +#include #include #include #include @@ -68,9 +70,9 @@ int fstabscan(void) int typexx; #define MAXLINELENGTH 1024 char subline[MAXLINELENGTH]; - char *device_name; for (;;) { + const char *device_name; if (!(mnt = getmntent(_fs_fp))) return 0;