Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Apr 2006 23:41:30 GMT
From:      John Birrell <jb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 95117 for review
Message-ID:  <200604122341.k3CNfUOi081420@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=95117

Change 95117 by jb@jb_freebsd2 on 2006/04/12 23:41:07

	Fix a return type. gcc treats NULL as a different type to (int) 0.

Affected files ...

.. //depot/projects/dtrace/src/contrib/opensolaris/cmd/sgs/libelf/common/gelf.c#2 edit

Differences ...

==== //depot/projects/dtrace/src/contrib/opensolaris/cmd/sgs/libelf/common/gelf.c#2 (text) ====

@@ -271,7 +271,7 @@
 		return (0);
 
 	if (elf_getphnum(elf, &phnum) == 0)
-		return (NULL);
+		return (0);
 
 	if (phnum < ndx) {
 		_elf_seterr(EREQ_RAND, 0);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604122341.k3CNfUOi081420>