Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/lib/libintl/gettext_iconv.c,v rcsdiff: /ftp/cvs/cvsroot/src/lib/libintl/gettext_iconv.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.7 retrieving revision 1.8 diff -u -p -r1.7 -r1.8 --- src/lib/libintl/gettext_iconv.c 2004/08/02 13:38:21 1.7 +++ src/lib/libintl/gettext_iconv.c 2009/02/18 13:08:22 1.8 @@ -1,4 +1,4 @@ -/* $NetBSD: gettext_iconv.c,v 1.7 2004/08/02 13:38:21 tshiozak Exp $ */ +/* $NetBSD: gettext_iconv.c,v 1.8 2009/02/18 13:08:22 yamt Exp $ */ /*- * Copyright (c) 2004 Citrus Project, @@ -93,7 +93,13 @@ cache_cmp(const void *va, const void *vb const struct cache *b = vb; int result; - result = a->c_origmsg - b->c_origmsg; + if (a->c_origmsg > b->c_origmsg) { + result = 1; + } else if (a->c_origmsg < b->c_origmsg) { + result = -1; + } else { + result = 0; + } return result; }