use const char [] for format.
This commit is contained in:
parent
065954bf9d
commit
a040843f47
|
@ -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 @@ show_card(int y, int x, CARD c, CARD *lc)
|
|||
*lc = c;
|
||||
}
|
||||
|
||||
#define Score_fmt "%4d"
|
||||
static const char Score_fmt[] = "%4d";
|
||||
|
||||
void
|
||||
prscore(bool for_real)
|
||||
|
|
|
@ -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 @@ str_to_long(char *str, int optval)
|
|||
*/
|
||||
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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue