summaryrefslogtreecommitdiffstats
path: root/usr.bin/cap_mkdb
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-08-02 15:18:45 +0000
committerbde <bde@FreeBSD.org>1998-08-02 15:18:45 +0000
commitdbc09be291ed507f26f3b2f3fbad6b02ef6bf476 (patch)
tree447936f1245497e41047f88a616f368a498ba092 /usr.bin/cap_mkdb
parent559a9a5f7d40627eaecd0fc3cd60b6d49c3853b9 (diff)
downloadFreeBSD-src-dbc09be291ed507f26f3b2f3fbad6b02ef6bf476.zip
FreeBSD-src-dbc09be291ed507f26f3b2f3fbad6b02ef6bf476.tar.gz
Fixed printf format errors.
Diffstat (limited to 'usr.bin/cap_mkdb')
-rw-r--r--usr.bin/cap_mkdb/cap_mkdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cap_mkdb/cap_mkdb.c b/usr.bin/cap_mkdb/cap_mkdb.c
index 1e1c201..91c2222 100644
--- a/usr.bin/cap_mkdb/cap_mkdb.c
+++ b/usr.bin/cap_mkdb/cap_mkdb.c
@@ -102,7 +102,7 @@ main(argc, argv)
*/
(void)snprintf(buf, sizeof(buf), "%s.db", capname ? capname : *argv);
if ((capname = strdup(buf)) == NULL)
- err(1, "");
+ err(1, (char *)NULL);
if ((capdbp = dbopen(capname,
O_CREAT | O_TRUNC | O_RDWR, DEFFILEMODE, DB_HASH, NULL)) == NULL)
err(1, "%s", buf);
@@ -159,7 +159,7 @@ db_build(ifiles)
if (bplen <= len + 2) {
bplen += MAX(256, len + 2);
if ((data.data = realloc(data.data, bplen)) == NULL)
- err(1, "");
+ err(1, (char *)NULL);
}
/* Find the end of the name field. */
OpenPOWER on IntegriCloud