PERFORCE change 103941 for review
John Birrell
jb at FreeBSD.org
Tue Aug 15 02:11:19 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=103941
Change 103941 by jb at 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);
More information about the p4-projects
mailing list