summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2011-08-29 06:22:07 +0000
committerdholland <dholland@pkgsrc.org>2011-08-29 06:22:07 +0000
commit0a0615e3db6414a131688cdd0b6af06e5e2ddddb (patch)
tree16c92ee2d4210147bc3e35caa7abc8dce2059648 /net
parent0b26b561fe4d93a60f36debaa8b3613ded1e28b0 (diff)
downloadpkgsrc-0a0615e3db6414a131688cdd0b6af06e5e2ddddb.tar.gz
Fix format strings and clang build.
Diffstat (limited to 'net')
-rw-r--r--net/sharity-light/Makefile3
-rw-r--r--net/sharity-light/files/unshlight.c7
2 files changed, 6 insertions, 4 deletions
diff --git a/net/sharity-light/Makefile b/net/sharity-light/Makefile
index 6ab87598d22..2a3a8fb26d4 100644
--- a/net/sharity-light/Makefile
+++ b/net/sharity-light/Makefile
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.9 2011/04/03 09:01:46 obache Exp $
+# $NetBSD: Makefile,v 1.10 2011/08/29 06:22:07 dholland Exp $
#
DISTNAME= Sharity-Light.1.2
PKGNAME= sharity-light-1.2
+PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= http://www.obdev.at/ftp/pub/Products/Sharity-Light/
diff --git a/net/sharity-light/files/unshlight.c b/net/sharity-light/files/unshlight.c
index 67c9d4c8e7b..da01d7190ea 100644
--- a/net/sharity-light/files/unshlight.c
+++ b/net/sharity-light/files/unshlight.c
@@ -1,10 +1,11 @@
-/* $NetBSD: unshlight.c,v 1.1.1.1 2001/03/09 16:09:36 wiz Exp $ */
+/* $NetBSD: unshlight.c,v 1.2 2011/08/29 06:22:07 dholland Exp $ */
#include <sys/param.h>
#include <sys/mount.h>
#include <err.h>
#include <sysexits.h>
#include <unistd.h>
+#include <string.h>
#include <stdlib.h>
#include <signal.h>
@@ -40,7 +41,7 @@ main(int argc, char** argv)
pid_t pid=0;
if (argc > 0) {
if (realpath(argv[0], abspath) == 0) {
- warn(abspath);
+ warn("%s", abspath);
continue;
}
}
@@ -59,7 +60,7 @@ main(int argc, char** argv)
if (error == 0) {
kill (pid, SIGHUP);
} else {
- warn(mntbuf[i].f_mntonname);
+ warn("%s", mntbuf[i].f_mntonname);
}
}
if (argc > 0 && !pid)