PERFORCE change 103903 for review

John Birrell jb at FreeBSD.org
Mon Aug 14 20:40:17 UTC 2006


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

Change 103903 by jb at jb_freebsd2 on 2006/08/14 20:39:02

	Remove some hacks which aren't needed after the last integration
	from libbsdelf.

Affected files ...

.. //depot/projects/dtrace/src/lib/libelf/elf_next.c#3 edit

Differences ...

==== //depot/projects/dtrace/src/lib/libelf/elf_next.c#3 (text+ko) ====

@@ -38,15 +38,12 @@
 Elf_Cmd
 elf_next(Elf *e)
 {
-#ifdef DOODAD
 	off_t next;
 	Elf *parent;
-#endif
 
 	if (e == NULL || (parent = e->e_parent) == NULL)
 		return (ELF_C_NULL);
 
-#ifdef DOODAD
 	assert (parent->e_kind == ELF_K_AR);
 	assert (parent->e_cmd == ELF_C_READ);
 	assert((uintptr_t) e->e_rawfile % 2 == 0);
@@ -56,7 +53,6 @@
 	next = (next + 1) & ~1;	/* round up to next 2-byte offset */
 
 	parent->e_u.e_ar.e_next = (next >= parent->e_rawsize) ? (off_t) -1 : next;
-#endif
 
 	return (ELF_C_READ);
 }


More information about the p4-projects mailing list