Module Name: src
Committed By: christos
Date: Sun Aug 21 08:59:50 UTC 2011
Modified Files:
src/usr.sbin/bootp/bootptest: bootptest.c
Log Message:
use const char [] for format
To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/usr.sbin/bootp/bootptest/bootptest.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/bootp/bootptest/bootptest.c
diff -u src/usr.sbin/bootp/bootptest/bootptest.c:1.19 src/usr.sbin/bootp/bootptest/bootptest.c:1.20
--- src/usr.sbin/bootp/bootptest/bootptest.c:1.19 Tue Aug 16 04:02:18 2011
+++ src/usr.sbin/bootp/bootptest/bootptest.c Sun Aug 21 04:59:50 2011
@@ -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>