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/add | |
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/add')
-rw-r--r-- | usr.sbin/pkg_install/add/Makefile | 2 | ||||
-rw-r--r-- | usr.sbin/pkg_install/add/extract.c | 4 | ||||
-rw-r--r-- | usr.sbin/pkg_install/add/main.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/pkg_install/add/Makefile b/usr.sbin/pkg_install/add/Makefile index 5f7d653..9267f06 100644 --- a/usr.sbin/pkg_install/add/Makefile +++ b/usr.sbin/pkg_install/add/Makefile @@ -5,7 +5,7 @@ SRCS= main.c perform.c futil.c extract.c CFLAGS+= ${DEBUG} -I${.CURDIR}/../lib -WARNS?= 6 +WARNS?= 3 WFORMAT?= 1 DPADD= ${LIBINSTALL} ${LIBFETCH} ${LIBMD} diff --git a/usr.sbin/pkg_install/add/extract.c b/usr.sbin/pkg_install/add/extract.c index 0e31e06..86a9805 100644 --- a/usr.sbin/pkg_install/add/extract.c +++ b/usr.sbin/pkg_install/add/extract.c @@ -132,7 +132,7 @@ extract_plist(const char *home, Package *pkg) Group = NULL; Mode = NULL; last_file = NULL; - (const char *)Directory = home; + Directory = (char *)home; /* Do it */ while (p) { @@ -223,7 +223,7 @@ extract_plist(const char *home, Package *pkg) Directory = p->name; } else - (const char *)Directory = home; + Directory = (char *)home; break; case PLIST_CMD: diff --git a/usr.sbin/pkg_install/add/main.c b/usr.sbin/pkg_install/add/main.c index 6463bc5..98eb883 100644 --- a/usr.sbin/pkg_install/add/main.c +++ b/usr.sbin/pkg_install/add/main.c @@ -187,7 +187,7 @@ main(int argc, char **argv) errx(1, "package name too long"); } if (!strcmp(*argv, "-")) /* stdin? */ - (const char *)pkgs[ch] = "-"; + pkgs[ch] = (char *)"-"; else if (isURL(*argv)) { /* preserve URLs */ if (strlcpy(pkgnames[ch], *argv, sizeof(pkgnames[ch])) >= sizeof(pkgnames[ch])) |