diff options
author | rdivacky <rdivacky@FreeBSD.org> | 2008-03-30 16:49:19 +0000 |
---|---|---|
committer | rdivacky <rdivacky@FreeBSD.org> | 2008-03-30 16:49:19 +0000 |
commit | de4395b1131e039c6679d1f44e65452a689427e3 (patch) | |
tree | 684156033bcc63dba1aaaccb68de0440f09b6bc0 /usr.sbin | |
parent | c2c4476b865f4499a7098b6c503674058304b025 (diff) | |
download | FreeBSD-src-de4395b1131e039c6679d1f44e65452a689427e3.zip FreeBSD-src-de4395b1131e039c6679d1f44e65452a689427e3.tar.gz |
Improve style a little and remove one always-true condition.
Approved by: portmgr (pav)
Approved by: kib (mentor)
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_install/add/perform.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pkg_install/add/perform.c b/usr.sbin/pkg_install/add/perform.c index 3b357fc..3b34728 100644 --- a/usr.sbin/pkg_install/add/perform.c +++ b/usr.sbin/pkg_install/add/perform.c @@ -252,7 +252,7 @@ pkg_do(char *pkg) } /* Now check the packing list for conflicts */ - if(!IgnoreDeps){ + if (!IgnoreDeps){ for (p = Plist.head; p != NULL; p = p->next) { if (p->type == PLIST_CONFLICTS) { int i; @@ -297,7 +297,7 @@ pkg_do(char *pkg) !(deporigin != NULL && matchbyorigin(deporigin, NULL) != NULL)) { char path[FILENAME_MAX], *cp = NULL; - if (!Fake&&!IgnoreDeps) { + if (!Fake) { char prefixArg[2 + MAXPATHLEN]; /* "-P" + Prefix */ if (PrefixRecursive) { strlcpy(prefixArg, "-P", sizeof(prefixArg)); @@ -369,7 +369,7 @@ pkg_do(char *pkg) else if (Verbose) printf(" - already installed.\n"); } - } + } /* if (!IgnoreDeps) */ if (code != 0) goto bomb; |