PERFORCE change 110915 for review

John Birrell jb at FreeBSD.org
Sat Dec 2 17:54:43 PST 2006


http://perforce.freebsd.org/chv.cgi?CH=110915

Change 110915 by jb at jb_freebsd8 on 2006/12/03 01:53:50

	Match return types.

Affected files ...

.. //depot/projects/dtrace/src/contrib/opensolaris/tools/ctf/cvt/output.c#7 edit

Differences ...

==== //depot/projects/dtrace/src/contrib/opensolaris/tools/ctf/cvt/output.c#7 (text) ====

@@ -466,7 +466,7 @@
 	int pad;
 	int i;
 
-	if (gelf_newehdr(dst, gelf_getclass(src)) == 0)
+	if (gelf_newehdr(dst, gelf_getclass(src)) == NULL)
 		elfterminate(dstname, "Cannot copy ehdr to temp file");
 	gelf_getehdr(src, &sehdr);
 	memcpy(&dehdr, &sehdr, sizeof (GElf_Ehdr));
@@ -482,7 +482,7 @@
 	 */
 	if (sehdr.e_phnum != 0) {
 		(void) elf_flagelf(dst, ELF_C_SET, ELF_F_LAYOUT);
-		if (gelf_newphdr(dst, sehdr.e_phnum) == 0)
+		if (gelf_newphdr(dst, sehdr.e_phnum) == NULL)
 			elfterminate(dstname, "Cannot make phdrs in temp file");
 
 		for (i = 0; i < sehdr.e_phnum; i++) {


More information about the p4-projects mailing list