Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/bootp/bootptest use const char [] for format
details: https://anonhg.NetBSD.org/src/rev/78745a5f368a
branches: trunk
changeset: 768574:78745a5f368a
user: christos <christos%NetBSD.org@localhost>
date: Sun Aug 21 08:59:50 2011 +0000
description:
use const char [] for format
diffstat:
usr.sbin/bootp/bootptest/bootptest.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (25 lines):
diff -r 656eb9a48cff -r 78745a5f368a usr.sbin/bootp/bootptest/bootptest.c
--- a/usr.sbin/bootp/bootptest/bootptest.c Sun Aug 21 08:50:08 2011 +0000
+++ b/usr.sbin/bootp/bootptest/bootptest.c Sun Aug 21 08:59:50 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bootptest.c,v 1.19 2011/08/16 08:02:18 christos Exp $ */
+/* $NetBSD: bootptest.c,v 1.20 2011/08/21 08:59:50 christos Exp $ */
/*
* bootptest.c - Test out a bootp server.
@@ -36,11 +36,12 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: bootptest.c,v 1.19 2011/08/16 08:02:18 christos Exp $");
+__RCSID("$NetBSD: bootptest.c,v 1.20 2011/08/21 08:59:50 christos Exp $");
#endif
-#define usage "Usage: %s [-f bootfile] [-h] [-m magic_number] server-name\n" \
- "\t[vendor-data-template-file]\n"
+static const char usage[] =
+ "Usage: %s [-f bootfile] [-h] [-m magic_number] server-name\n"
+ "\t[vendor-data-template-file]\n";
#include <sys/param.h>
#include <sys/socket.h>
Home |
Main Index |
Thread Index |
Old Index