diff options
author | kan <kan@FreeBSD.org> | 2004-07-28 07:19:15 +0000 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2004-07-28 07:19:15 +0000 |
commit | bc35f3d1a7fbce02f757b2c151b158ed43bfe96e (patch) | |
tree | 62b522d923e8a50663a3128d3a6b25c9ae741963 /usr.sbin/pkg_install/create | |
parent | cd51b9e3acc4ebaa98c68d2ec24d4f46d089f166 (diff) | |
download | FreeBSD-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/create')
-rw-r--r-- | usr.sbin/pkg_install/create/Makefile | 2 | ||||
-rw-r--r-- | usr.sbin/pkg_install/create/perform.c | 16 |
2 files changed, 10 insertions, 8 deletions
diff --git a/usr.sbin/pkg_install/create/Makefile b/usr.sbin/pkg_install/create/Makefile index 16f2bc2..2971ba3 100644 --- a/usr.sbin/pkg_install/create/Makefile +++ b/usr.sbin/pkg_install/create/Makefile @@ -5,7 +5,7 @@ SRCS= main.c perform.c pl.c CFLAGS+= ${DEBUG} -I${.CURDIR}/../lib -WARNS?= 6 +WARNS?= 3 WFORMAT?= 1 DPADD= ${LIBINSTALL} ${LIBMD} diff --git a/usr.sbin/pkg_install/create/perform.c b/usr.sbin/pkg_install/create/perform.c index 119d54e..efbac43 100644 --- a/usr.sbin/pkg_install/create/perform.c +++ b/usr.sbin/pkg_install/create/perform.c @@ -472,13 +472,15 @@ create_from_installed(const char *pkg, const char *suf) read_plist(&plist, fp); fclose(fp); - (const char *)Install = isfile(INSTALL_FNAME) ? INSTALL_FNAME : NULL; - (const char *)PostInstall = isfile(POST_INSTALL_FNAME) ? POST_INSTALL_FNAME : NULL; - (const char *)DeInstall = isfile(DEINSTALL_FNAME) ? DEINSTALL_FNAME : NULL; - (const char *)PostDeInstall = isfile(POST_DEINSTALL_FNAME) ? POST_DEINSTALL_FNAME : NULL; - (const char *)Require = isfile(REQUIRE_FNAME) ? REQUIRE_FNAME : NULL; - (const char *)Display = isfile(DISPLAY_FNAME) ? DISPLAY_FNAME : NULL; - (const char *)Mtree = isfile(MTREE_FNAME) ? MTREE_FNAME : NULL; + Install = isfile(INSTALL_FNAME) ? (char *)INSTALL_FNAME : NULL; + PostInstall = isfile(POST_INSTALL_FNAME) ? + (char *)POST_INSTALL_FNAME : NULL; + DeInstall = isfile(DEINSTALL_FNAME) ? (char *)DEINSTALL_FNAME : NULL; + PostDeInstall = isfile(POST_DEINSTALL_FNAME) ? + (char *)POST_DEINSTALL_FNAME : NULL; + Require = isfile(REQUIRE_FNAME) ? (char *)REQUIRE_FNAME : NULL; + Display = isfile(DISPLAY_FNAME) ? (char *)DISPLAY_FNAME : NULL; + Mtree = isfile(MTREE_FNAME) ? (char *)MTREE_FNAME : NULL; make_dist(homedir, pkg, suf, &plist); |