Date: Tue, 15 Aug 2006 02:11:18 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 103941 for review Message-ID: <200608150211.k7F2BI44082670@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=103941 Change 103941 by jb@jb_freebsd2 on 2006/08/15 02:10:19 Fix compiler warnings. (insert rant here) Affected files ... .. //depot/projects/dtrace/src/contrib/opensolaris/cmd/sgs/tools/common/string_table.c#3 edit Differences ... ==== //depot/projects/dtrace/src/contrib/opensolaris/cmd/sgs/tools/common/string_table.c#3 (text) ==== @@ -28,6 +28,7 @@ #include <string_table.h> #include <strings.h> +#include <string.h> #include <sgs.h> #include <stdio.h> @@ -124,12 +125,12 @@ /* LINTLIBRARY */ -int +static int strlen_compare(const void *elem1, const void *elem2) { uint_t l1, l2; - l1 = ((Stringelem *)elem1)->se_stlen; - l2 = ((Stringelem *)elem2)->se_stlen; + l1 = ((const Stringelem *)elem1)->se_stlen; + l2 = ((const Stringelem *)elem2)->se_stlen; if (l1 == l2) return (0);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608150211.k7F2BI44082670>