]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Minor cleanup: make brk_string to return argc only if the pointer to it
authorHartmut Brandt <harti@FreeBSD.org>
Fri, 4 Feb 2005 12:30:54 +0000 (12:30 +0000)
committerHartmut Brandt <harti@FreeBSD.org>
Fri, 4 Feb 2005 12:30:54 +0000 (12:30 +0000)
commit435916b0119eadc7f9349c6b3b34f05069a9d184
tree1d283f09e7c2d0e719ea4d406f6777b7b642b626
parentacd5b69dd1b4ce7073d24208aba33148baae8b78
Minor cleanup: make brk_string to return argc only if the pointer to it
was non-NULL. This let's us eliminated an otherwise unused variable.

shellneeded can never return -1 so there is no need to check for it and
hence no need for a variable to hold the returned value.

Submitted by: Max Okumoto <okumoto@ucsd.edu> (partly)
usr.bin/make/compat.c
usr.bin/make/str.c