diff options
author | 2003-12-01 15:34:26 +0000 | |
---|---|---|
committer | 2003-12-01 15:34:26 +0000 | |
commit | 7843b775b3c4370c72fb96e6a1012b1bc35f8e5d (patch) | |
tree | 2fcc305ea6afe4b600ae587a0db794d0e452f12f | |
parent | Add x86_64-unknown-openbsd* target. Tested only as a cross-compiler. (diff) | |
download | wireguard-openbsd-7843b775b3c4370c72fb96e6a1012b1bc35f8e5d.tar.xz wireguard-openbsd-7843b775b3c4370c72fb96e6a1012b1bc35f8e5d.zip |
Format string fixes from art's amd64 tree.
ok rohee@ espie@
-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 |