diff options
author | Alexander Yurchenko <grange@cvs.openbsd.org> | 2003-12-01 15:34:27 +0000 |
---|---|---|
committer | Alexander Yurchenko <grange@cvs.openbsd.org> | 2003-12-01 15:34:27 +0000 |
commit | 3a166623bfb6e97f6308e8b32e6f9f1d24c0650b (patch) | |
tree | e780d06167f145713f8f35b2c04c912f670cb112 /usr.bin | |
parent | d87fc95cb42b08c638b6a25a2024a36b39db7efc (diff) |
Format string fixes from art's amd64 tree.
ok rohee@ espie@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/awk/lib.c | 4 | ||||
-rw-r--r-- | usr.bin/fmt/fmt.c | 6 | ||||
-rw-r--r-- | usr.bin/rpcgen/rpc_hout.c | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/awk/lib.c b/usr.bin/awk/lib.c index 7028ea3538a..51a1845c58c 100644 --- a/usr.bin/awk/lib.c +++ b/usr.bin/awk/lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lib.c,v 1.13 2003/04/28 03:07:40 tedu Exp $ */ +/* $OpenBSD: lib.c,v 1.14 2003/12/01 15:34:26 grange Exp $ */ /**************************************************************** Copyright (C) Lucent Technologies 1997 All Rights Reserved @@ -481,7 +481,7 @@ int errorflag = 0; void yyerror(const char *s) { - SYNTAX(s); + SYNTAX("%s", s); } void SYNTAX(const char *fmt, ...) diff --git a/usr.bin/fmt/fmt.c b/usr.bin/fmt/fmt.c index ac3c6c09349..f6c0156fdfa 100644 --- a/usr.bin/fmt/fmt.c +++ b/usr.bin/fmt/fmt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fmt.c,v 1.19 2001/11/29 00:33:06 millert Exp $ */ +/* $OpenBSD: fmt.c,v 1.20 2003/12/01 15:34:26 grange Exp $ */ /* Sensible version of fmt * @@ -170,7 +170,7 @@ #ifndef lint static const char rcsid[] = - "$OpenBSD: fmt.c,v 1.19 2001/11/29 00:33:06 millert Exp $"; + "$OpenBSD: fmt.c,v 1.20 2003/12/01 15:34:26 grange Exp $"; static const char copyright[] = "Copyright (c) 1997 Gareth McCaughan. All rights reserved.\n"; #endif /* not lint */ @@ -200,7 +200,7 @@ get_positive(const char *s, const char *err_mess, int fussyP) { char *t; long result = strtol(s,&t,0); if (*t) { if (fussyP) goto Lose; else return 0; } - if (result<=0) { Lose: errx(EX_USAGE, err_mess); } + if (result<=0) { Lose: errx(EX_USAGE, "%s", err_mess); } return (size_t) result; } diff --git a/usr.bin/rpcgen/rpc_hout.c b/usr.bin/rpcgen/rpc_hout.c index f45f833dbd7..2e329f81a6c 100644 --- a/usr.bin/rpcgen/rpc_hout.c +++ b/usr.bin/rpcgen/rpc_hout.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rpc_hout.c,v 1.15 2003/07/10 00:06:51 david Exp $ */ +/* $OpenBSD: rpc_hout.c,v 1.16 2003/12/01 15:34:26 grange Exp $ */ /* $NetBSD: rpc_hout.c,v 1.4 1995/06/11 21:49:55 pk Exp $ */ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for @@ -482,7 +482,7 @@ pdeclaration(name, dec, tab, separator) break; } } - fprintf(fout, separator); + fprintf(fout, "%s", separator); } static int |