Improve style a little and remove one always-true condition.

Approved by:	portmgr (pav)
Approved by:	kib (mentor)
This commit is contained in:
Roman Divacky 2008-03-30 16:49:19 +00:00
parent a03ee0000e
commit 4f49091fda

View File

@ -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;