summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/lib
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2004-07-28 07:19:15 +0000
committerkan <kan@FreeBSD.org>2004-07-28 07:19:15 +0000
commitbc35f3d1a7fbce02f757b2c151b158ed43bfe96e (patch)
tree62b522d923e8a50663a3128d3a6b25c9ae741963 /usr.sbin/pkg_install/lib
parentcd51b9e3acc4ebaa98c68d2ec24d4f46d089f166 (diff)
downloadFreeBSD-src-bc35f3d1a7fbce02f757b2c151b158ed43bfe96e.zip
FreeBSD-src-bc35f3d1a7fbce02f757b2c151b158ed43bfe96e.tar.gz
Downgrade WARNS level to more tolerable value. Attempt to fix
casts as lvalue usage whenever possible.
Diffstat (limited to 'usr.sbin/pkg_install/lib')
-rw-r--r--usr.sbin/pkg_install/lib/Makefile2
-rw-r--r--usr.sbin/pkg_install/lib/plist.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_install/lib/Makefile b/usr.sbin/pkg_install/lib/Makefile
index 0aba9a4..d248047 100644
--- a/usr.sbin/pkg_install/lib/Makefile
+++ b/usr.sbin/pkg_install/lib/Makefile
@@ -7,7 +7,7 @@ SRCS= file.c msg.c plist.c str.c exec.c global.c pen.c match.c \
CFLAGS+= ${DEBUG}
-WARNS?= 6
+WARNS?= 3
WFORMAT?= 1
.include <bsd.lib.mk>
diff --git a/usr.sbin/pkg_install/lib/plist.c b/usr.sbin/pkg_install/lib/plist.c
index 60bc111..95d9ac4 100644
--- a/usr.sbin/pkg_install/lib/plist.c
+++ b/usr.sbin/pkg_install/lib/plist.c
@@ -205,7 +205,7 @@ plist_cmd(const char *s, char **arg)
++cp, ++sp;
}
if (arg)
- (const char *)*arg = sp;
+ *arg = (char *)sp;
if (!strcmp(cmd, "cwd"))
return PLIST_CWD;
else if (!strcmp(cmd, "srcdir"))
OpenPOWER on IntegriCloud