Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/ftp make a pointers static again (that were made aut...
details: https://anonhg.NetBSD.org/src/rev/b83bbc0e1cba
branches: trunk
changeset: 474239:b83bbc0e1cba
user: lukem <lukem%NetBSD.org@localhost>
date: Fri Jul 02 05:41:45 1999 +0000
description:
make a pointers static again (that were made automatic as part of the
xfer rate stuff, but i never completed the changes that didn't need it
set).
fixes a coredump noticed on current-users@ by Chan Yiu Wah <c5666305%hkstar.com@localhost>
diffstat:
usr.bin/ftp/ftp.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r d665cc74ecd4 -r b83bbc0e1cba usr.bin/ftp/ftp.c
--- a/usr.bin/ftp/ftp.c Fri Jul 02 04:53:23 1999 +0000
+++ b/usr.bin/ftp/ftp.c Fri Jul 02 05:41:45 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ftp.c,v 1.46 1999/06/29 10:43:18 lukem Exp $ */
+/* $NetBSD: ftp.c,v 1.47 1999/07/02 05:41:45 lukem Exp $ */
/*
* Copyright (c) 1985, 1989, 1993, 1994
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)ftp.c 8.6 (Berkeley) 10/27/94";
#else
-__RCSID("$NetBSD: ftp.c,v 1.46 1999/06/29 10:43:18 lukem Exp $");
+__RCSID("$NetBSD: ftp.c,v 1.47 1999/07/02 05:41:45 lukem Exp $");
#endif
#endif /* not lint */
@@ -793,8 +793,8 @@
sig_t oldinti, oldintr, oldintp;
int c, d;
volatile int is_retr, tcrflag, bare_lfs;
- size_t bufsize;
- char *buf;
+ static size_t bufsize;
+ static char *buf;
volatile off_t hashbytes;
struct stat st;
time_t mtime;
Home |
Main Index |
Thread Index |
Old Index