diff --git a/vfs/ChangeLog b/vfs/ChangeLog index a9b043fe8..c5db8f310 100644 --- a/vfs/ChangeLog +++ b/vfs/ChangeLog @@ -2,6 +2,8 @@ * vfs-impl.h (union vfs_dirent): Using the offsetof macro instead of null pointer arithmethics. + * ftpfs.c: Code cleanup. + * direntry.c: Removed an unused variable. 2005-07-31 Roland Illig diff --git a/vfs/direntry.c b/vfs/direntry.c index 4e26bec45..bab237338 100644 --- a/vfs/direntry.c +++ b/vfs/direntry.c @@ -1171,7 +1171,7 @@ int vfs_s_get_line (struct vfs_class *me, int sock, char *buf, int buf_len, char term) { FILE *logfile = MEDATA->logfile; - int i, status; + int i; char c; for (i = 0; i < buf_len - 1; i++, buf++){ @@ -1189,7 +1189,7 @@ vfs_s_get_line (struct vfs_class *me, int sock, char *buf, int buf_len, char ter /* Line is too long - terminate buffer and discard the rest of line */ *buf = 0; - while ((status = read (sock, &c, sizeof (c))) > 0){ + while (read (sock, &c, sizeof (c)) > 0) { if (logfile){ fwrite (&c, 1, 1, logfile); fflush (logfile);