diff options
author | Charles Longeau <chl@cvs.openbsd.org> | 2015-07-26 22:17:35 +0000 |
---|---|---|
committer | Charles Longeau <chl@cvs.openbsd.org> | 2015-07-26 22:17:35 +0000 |
commit | 0e4969bc59663b3b2024496b4a4d95679aa2dbaa (patch) | |
tree | b6f6c746425c3a99e941fc0b5d69b09587b2ff8e | |
parent | 20b546560f1bfc67eab6928e82dad17a7be33f45 (diff) |
fix format string
ok deraadt@
-rw-r--r-- | usr.bin/ipcrm/ipcrm.c | 4 | ||||
-rw-r--r-- | usr.sbin/sa/main.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/ipcrm/ipcrm.c b/usr.bin/ipcrm/ipcrm.c index 4f70c629848..6aae87ac5ba 100644 --- a/usr.bin/ipcrm/ipcrm.c +++ b/usr.bin/ipcrm/ipcrm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipcrm.c,v 1.11 2015/04/18 18:28:37 deraadt Exp $*/ +/* $OpenBSD: ipcrm.c,v 1.12 2015/07/26 22:17:34 chl Exp $*/ /* * Copyright (c) 1994 Adam Glass @@ -126,7 +126,7 @@ main(int argc, char *argv[]) case 's': target_id = strtonum(optarg, 0, INT_MAX, &errstr); if (errstr) - errx(1, "-%c %s: %s\n", c, optarg, &errstr); + errx(1, "-%c %s: %s\n", c, optarg, errstr); if (c == 'q') result = msgrm(0, target_id); else if (c == 'm') diff --git a/usr.sbin/sa/main.c b/usr.sbin/sa/main.c index f64f03c7265..dd60cdb9d26 100644 --- a/usr.sbin/sa/main.c +++ b/usr.sbin/sa/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.13 2015/04/18 18:28:38 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.14 2015/07/26 22:16:43 chl Exp $ */ /* * Copyright (c) 1994 Christopher G. Demetriou * All rights reserved. @@ -160,7 +160,7 @@ main(int argc, char **argv) /* XXX cutoff could be converted to quad_t? */ cutoff = strtonum(optarg, 1, INT_MAX, &errstr); if (errstr) - errx(1, "-v $s: %s", optarg, errstr); + errx(1, "-v %s: %s", optarg, errstr); break; case '?': default: |