Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/tftp correct arg to setpeer() from main().
details: https://anonhg.NetBSD.org/src/rev/df32afab8015
branches: trunk
changeset: 552780:df32afab8015
user: itojun <itojun%NetBSD.org@localhost>
date: Thu Oct 02 23:31:52 2003 +0000
description:
correct arg to setpeer() from main().
diffstat:
usr.bin/tftp/main.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 2c5711536a8b -r df32afab8015 usr.bin/tftp/main.c
--- a/usr.bin/tftp/main.c Thu Oct 02 21:33:05 2003 +0000
+++ b/usr.bin/tftp/main.c Thu Oct 02 23:31:52 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.18 2003/10/02 21:33:05 itojun Exp $ */
+/* $NetBSD: main.c,v 1.19 2003/10/02 23:31:52 itojun Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -36,7 +36,7 @@
#if 0
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93";
#else
-__RCSID("$NetBSD: main.c,v 1.18 2003/10/02 21:33:05 itojun Exp $");
+__RCSID("$NetBSD: main.c,v 1.19 2003/10/02 23:31:52 itojun Exp $");
#endif
#endif /* not lint */
@@ -192,6 +192,8 @@
if (argc >= 1) {
if (setjmp(toplevel) != 0)
exit(0);
+ argc++;
+ argv--;
setpeer(argc, argv);
}
if (setjmp(toplevel) != 0)
Home |
Main Index |
Thread Index |
Old Index