* direntry.c: Removed an unused variable.

This commit is contained in:
Roland Illig 2005-08-15 21:25:02 +00:00
parent b5e201a74a
commit b4479c533d
2 changed files with 4 additions and 2 deletions

View File

@ -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 <roland.illig@gmx.de>

View File

@ -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);