summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ckdist
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>2000-05-28 14:57:49 +0000
committercharnier <charnier@FreeBSD.org>2000-05-28 14:57:49 +0000
commitdc8bb722f53d28532c6de1886a38e028984f3fe5 (patch)
tree8413413630b4d45c56cb8183cb541a7ba0bcfe77 /usr.sbin/ckdist
parent9ea62eb3d92573e0d7351fa5706f35c8fadce116 (diff)
downloadFreeBSD-src-dc8bb722f53d28532c6de1886a38e028984f3fe5.zip
FreeBSD-src-dc8bb722f53d28532c6de1886a38e028984f3fe5.tar.gz
match prototype
Diffstat (limited to 'usr.sbin/ckdist')
-rw-r--r--usr.sbin/ckdist/ckdist.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/ckdist/ckdist.c b/usr.sbin/ckdist/ckdist.c
index 2c8e83e..3761b70 100644
--- a/usr.sbin/ckdist/ckdist.c
+++ b/usr.sbin/ckdist/ckdist.c
@@ -131,7 +131,7 @@ main(int argc, char *argv[])
usage();
if (opt_dir) {
if (stat(opt_dir, &sb))
- err(2, opt_dir);
+ err(2, "%s", opt_dir);
if (!S_ISDIR(sb.st_mode))
errx(2, "%s: not a directory", opt_dir);
}
@@ -209,9 +209,9 @@ ckdist(const char *path, int type)
rval = report(path, NULL, E_UNKNOWN);
}
if (ferror(fp))
- warn(path);
+ warn("%s", path);
if (fp != stdin && fclose(fp))
- err(2, path);
+ err(2, "%s", path);
return rval;
}
@@ -244,7 +244,7 @@ chkmd5(FILE * fp, const char *path)
if ((fd = open(dname, O_RDONLY)) == -1)
error = E_ERRNO;
else if (close(fd))
- err(2, dname);
+ err(2, "%s", dname);
} else if (!MD5File((char *)dname, chk))
error = E_ERRNO;
else if (strcmp(chk, sum))
@@ -301,7 +301,7 @@ chkinf(FILE * fp, const char *path)
error = E_CHKSUM;
}
if (fd != -1 && close(fd))
- err(2, dname);
+ err(2, "%s", dname);
if (opt_ignore && error == E_ERRNO && errno == ENOENT)
continue;
if (error || (opt_all && cnt >= 0))
OpenPOWER on IntegriCloud