Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/ldd Fix sign compare
details: https://anonhg.NetBSD.org/src/rev/e7ffac8f89f3
branches: trunk
changeset: 765329:e7ffac8f89f3
user: joerg <joerg%NetBSD.org@localhost>
date: Tue May 24 12:27:29 2011 +0000
description:
Fix sign compare
diffstat:
usr.bin/ldd/ldd.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r f212b0d2088f -r e7ffac8f89f3 usr.bin/ldd/ldd.c
--- a/usr.bin/ldd/ldd.c Tue May 24 12:25:05 2011 +0000
+++ b/usr.bin/ldd/ldd.c Tue May 24 12:27:29 2011 +0000
@@ -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;
Home |
Main Index |
Thread Index |
Old Index