diff options
author | Mark Murray <markm@FreeBSD.org> | 2001-12-11 22:27:26 +0000 |
---|---|---|
committer | Mark Murray <markm@FreeBSD.org> | 2001-12-11 22:27:26 +0000 |
commit | 1c6cde4bb51eb79c3eb26a4c6a33a4a547c53338 (patch) | |
tree | f1ef39aa14d70f68f48324b734f938f02faa9243 /usr.bin/which | |
parent | d46847c026020cac3c33d647644474a8bd790011 (diff) | |
download | src-1c6cde4bb51eb79c3eb26a4c6a33a4a547c53338.tar.gz src-1c6cde4bb51eb79c3eb26a4c6a33a4a547c53338.zip |
Use FBSDID(), WARNS=2 fix.
Mkaefile does not use WARNS=2 beacuse this will be made default.
Notes
Notes:
svn path=/head/; revision=87678
Diffstat (limited to 'usr.bin/which')
-rw-r--r-- | usr.bin/which/which.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/which/which.c b/usr.bin/which/which.c index c0435fbbb950..f55871a76efa 100644 --- a/usr.bin/which/which.c +++ b/usr.bin/which/which.c @@ -22,10 +22,12 @@ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * $FreeBSD$ */ +#include <sys/cdefs.h> + +__FBSDID("$FreeBSD$"); + #include <sys/stat.h> #include <sys/param.h> @@ -132,7 +134,7 @@ print_matches(char *path, char *filename) found = 0; while ((d = strsep(&path, ":")) != NULL) { if (snprintf(candidate, sizeof(candidate), "%s/%s", d, - filename) >= sizeof(candidate)) + filename) >= (int)sizeof(candidate)) continue; if (is_there(candidate)) { found = 1; |