diff options
author | Roman Divacky <rdivacky@FreeBSD.org> | 2008-03-30 16:49:19 +0000 |
---|---|---|
committer | Roman Divacky <rdivacky@FreeBSD.org> | 2008-03-30 16:49:19 +0000 |
commit | 4f49091fdac9d7b71fd902e71e4b685dc69d4f80 (patch) | |
tree | 684156033bcc63dba1aaaccb68de0440f09b6bc0 /usr.sbin/pkg_install/add/perform.c | |
parent | a03ee0000e93386df03128e4c38870fcede169a0 (diff) |
Improve style a little and remove one always-true condition.
Approved by: portmgr (pav)
Approved by: kib (mentor)
Notes
Notes:
svn path=/head/; revision=177741
Diffstat (limited to 'usr.sbin/pkg_install/add/perform.c')
-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 3b357fcbbfac..3b3472856795 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; |