Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src use const char [] for format.
details: https://anonhg.NetBSD.org/src/rev/656eb9a48cff
branches: trunk
changeset: 768573:656eb9a48cff
user: christos <christos%NetBSD.org@localhost>
date: Sun Aug 21 08:50:08 2011 +0000
description:
use const char [] for format.
diffstat:
games/mille/print.c | 6 +++---
usr.bin/radioctl/radioctl.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r b8e437335bc5 -r 656eb9a48cff games/mille/print.c
--- a/games/mille/print.c Sun Aug 21 08:45:20 2011 +0000
+++ b/games/mille/print.c Sun Aug 21 08:50:08 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: print.c,v 1.17 2011/08/16 11:14:04 christos Exp $ */
+/* $NetBSD: print.c,v 1.18 2011/08/21 08:50:08 christos Exp $ */
/*
* Copyright (c) 1982, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)print.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: print.c,v 1.17 2011/08/16 11:14:04 christos Exp $");
+__RCSID("$NetBSD: print.c,v 1.18 2011/08/21 08:50:08 christos Exp $");
#endif
#endif /* not lint */
@@ -115,7 +115,7 @@
*lc = c;
}
-#define Score_fmt "%4d"
+static const char Score_fmt[] = "%4d";
void
prscore(bool for_real)
diff -r b8e437335bc5 -r 656eb9a48cff usr.bin/radioctl/radioctl.c
--- a/usr.bin/radioctl/radioctl.c Sun Aug 21 08:45:20 2011 +0000
+++ b/usr.bin/radioctl/radioctl.c Sun Aug 21 08:50:08 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: radioctl.c,v 1.10 2011/08/17 13:12:39 christos Exp $ */
+/* $NetBSD: radioctl.c,v 1.11 2011/08/21 08:57:40 christos Exp $ */
/* $OpenBSD: radioctl.c,v 1.5 2001/12/18 18:42:19 mickey Exp $ */
/* $RuOBSD: radioctl.c,v 1.4 2001/10/20 18:09:10 pva Exp $ */
@@ -29,7 +29,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: radioctl.c,v 1.10 2011/08/17 13:12:39 christos Exp $");
+__RCSID("$NetBSD: radioctl.c,v 1.11 2011/08/21 08:57:40 christos Exp $");
#endif
#include <sys/ioctl.h>
@@ -360,7 +360,7 @@
*/
static int
parse_opt(char *s, struct opt_t *o) {
-#define badvalue "bad value `%s'"
+ static const char badvalue[] = "bad value `%s'";
char *topt = NULL;
int slen, optlen;
Home |
Main Index |
Thread Index |
Old Index