Module Name: src Committed By: joerg Date: Tue May 24 12:27:30 UTC 2011
Modified Files: src/usr.bin/ldd: ldd.c Log Message: Fix sign compare To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/usr.bin/ldd/ldd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/ldd/ldd.c diff -u src/usr.bin/ldd/ldd.c:1.18 src/usr.bin/ldd/ldd.c:1.19 --- src/usr.bin/ldd/ldd.c:1.18 Tue Mar 29 20:56:35 2011 +++ src/usr.bin/ldd/ldd.c Tue May 24 12:27:29 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: ldd.c,v 1.18 2011/03/29 20:56:35 joerg Exp $ */ +/* $NetBSD: ldd.c,v 1.19 2011/05/24 12:27:29 joerg Exp $ */ /*- * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc. @@ -62,7 +62,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: ldd.c,v 1.18 2011/03/29 20:56:35 joerg Exp $"); +__RCSID("$NetBSD: ldd.c,v 1.19 2011/05/24 12:27:29 joerg Exp $"); #endif /* not lint */ #include <sys/types.h> @@ -212,7 +212,7 @@ if (strncmp(libname, "lib", 3) == 0 && (cp = strstr(libname, ".so")) != NULL) { - int i = cp - (libname + 3); + size_t i = cp - (libname + 3); if (i >= sizeof(libnamebuf)) i = sizeof(libnamebuf) - 1;