use const char [] for format.

This commit is contained in:
christos 2011-08-21 08:50:08 +00:00
parent 065954bf9d
commit a040843f47
2 changed files with 6 additions and 6 deletions

View File

@ -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 * Copyright (c) 1982, 1993
@ -34,7 +34,7 @@
#if 0 #if 0
static char sccsid[] = "@(#)print.c 8.1 (Berkeley) 5/31/93"; static char sccsid[] = "@(#)print.c 8.1 (Berkeley) 5/31/93";
#else #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
#endif /* not lint */ #endif /* not lint */
@ -115,7 +115,7 @@ show_card(int y, int x, CARD c, CARD *lc)
*lc = c; *lc = c;
} }
#define Score_fmt "%4d" static const char Score_fmt[] = "%4d";
void void
prscore(bool for_real) prscore(bool for_real)

View File

@ -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 $ */ /* $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 $ */ /* $RuOBSD: radioctl.c,v 1.4 2001/10/20 18:09:10 pva Exp $ */
@ -29,7 +29,7 @@
#include <sys/cdefs.h> #include <sys/cdefs.h>
#ifndef lint #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 #endif
#include <sys/ioctl.h> #include <sys/ioctl.h>
@ -360,7 +360,7 @@ str_to_long(char *str, int optval)
*/ */
static int static int
parse_opt(char *s, struct opt_t *o) { parse_opt(char *s, struct opt_t *o) {
#define badvalue "bad value `%s'" static const char badvalue[] = "bad value `%s'";
char *topt = NULL; char *topt = NULL;
int slen, optlen; int slen, optlen;