From 1f1707d89210fde12a851f855259c8a08d955764 Mon Sep 17 00:00:00 2001 From: markm Date: Tue, 11 Dec 2001 22:27:26 +0000 Subject: Use FBSDID(), WARNS=2 fix. Mkaefile does not use WARNS=2 beacuse this will be made default. --- usr.bin/which/which.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'usr.bin/which/which.c') diff --git a/usr.bin/which/which.c b/usr.bin/which/which.c index c0435fb..f55871a 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 + +__FBSDID("$FreeBSD$"); + #include #include @@ -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; -- cgit v1.1