diff options
author | Charles Longeau <chl@cvs.openbsd.org> | 2008-11-08 01:29:11 +0000 |
---|---|---|
committer | Charles Longeau <chl@cvs.openbsd.org> | 2008-11-08 01:29:11 +0000 |
commit | ffac49ababff94d50dafec7b33a1efa97fa87ad1 (patch) | |
tree | 9e0bf680bcc102095f247ee3e666e4fcffb44509 /usr.bin | |
parent | 009f098a4f34f3eb066dfa955660f53344322f77 (diff) |
fix format string
ok otto@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/getconf/getconf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/getconf/getconf.c b/usr.bin/getconf/getconf.c index f889545e2a0..451ecb7dd9f 100644 --- a/usr.bin/getconf/getconf.c +++ b/usr.bin/getconf/getconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getconf.c,v 1.10 2006/12/04 15:05:19 otto Exp $ */ +/* $OpenBSD: getconf.c,v 1.11 2008/11/08 01:29:10 chl Exp $ */ /*- * Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -41,7 +41,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: getconf.c,v 1.10 2006/12/04 15:05:19 otto Exp $"; +static char rcsid[] = "$OpenBSD: getconf.c,v 1.11 2008/11/08 01:29:10 chl Exp $"; #endif /* not lint */ #include <stdio.h> @@ -193,9 +193,9 @@ main(int argc, char *argv[]) if (slen == 0 || slen == (size_t)-1) { if (errno) - err(1, "%s", cp->value); + err(1, "%ld", cp->value); else - errx(1, "%s", cp->value); + errx(1, "%ld", cp->value); } if ((sval = malloc(slen)) == NULL) err(1, NULL); |