* direntry.c: Removed an unused variable.
Этот коммит содержится в:
родитель
b5e201a74a
Коммит
b4479c533d
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
* vfs-impl.h (union vfs_dirent): Using the offsetof macro
|
* vfs-impl.h (union vfs_dirent): Using the offsetof macro
|
||||||
instead of null pointer arithmethics.
|
instead of null pointer arithmethics.
|
||||||
|
* ftpfs.c: Code cleanup.
|
||||||
|
* direntry.c: Removed an unused variable.
|
||||||
|
|
||||||
2005-07-31 Roland Illig <roland.illig@gmx.de>
|
2005-07-31 Roland Illig <roland.illig@gmx.de>
|
||||||
|
|
||||||
|
@ -1171,7 +1171,7 @@ int
|
|||||||
vfs_s_get_line (struct vfs_class *me, int sock, char *buf, int buf_len, char term)
|
vfs_s_get_line (struct vfs_class *me, int sock, char *buf, int buf_len, char term)
|
||||||
{
|
{
|
||||||
FILE *logfile = MEDATA->logfile;
|
FILE *logfile = MEDATA->logfile;
|
||||||
int i, status;
|
int i;
|
||||||
char c;
|
char c;
|
||||||
|
|
||||||
for (i = 0; i < buf_len - 1; i++, buf++){
|
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 */
|
/* Line is too long - terminate buffer and discard the rest of line */
|
||||||
*buf = 0;
|
*buf = 0;
|
||||||
while ((status = read (sock, &c, sizeof (c))) > 0){
|
while (read (sock, &c, sizeof (c)) > 0) {
|
||||||
if (logfile){
|
if (logfile){
|
||||||
fwrite (&c, 1, 1, logfile);
|
fwrite (&c, 1, 1, logfile);
|
||||||
fflush (logfile);
|
fflush (logfile);
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user