X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=compat%2Flib%2Ffstab.c;h=de95455debc40b916a6f25112eda8ddf1e369cb1;hb=a18d599791e977f3e3d26123031e6ed4e64d6d08;hp=b3a21f0c66c074d78e87c158cfdb53f40896f0a2;hpb=8954518fe88156827aa958745ba1eb9cea4b42fa;p=dump.git diff --git a/compat/lib/fstab.c b/compat/lib/fstab.c index b3a21f0..de95455 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.13 2002/01/25 15:08:59 stelian Exp $"; #endif /* not lint */ +#include #include #include #include @@ -64,13 +66,13 @@ static int fstabscan(void) { struct mntent *mnt; - register char *cp; + char *cp; int typexx; #define MAXLINELENGTH 1024 char subline[MAXLINELENGTH]; - char *device_name; for (;;) { + const char *device_name; if (!(mnt = getmntent(_fs_fp))) return 0;