svn commit: r229088 - stable/9/cddl/contrib/opensolaris/lib/libdtrace/common

Dimitry Andric dim at FreeBSD.org
Sat Dec 31 13:43:51 UTC 2011


Author: dim
Date: Sat Dec 31 13:43:51 2011
New Revision: 229088
URL: http://svn.freebsd.org/changeset/base/229088

Log:
  MFC r228547:
  
  Cast away a clang alignment warning in drti.c's fixsymbol() function.
  This code only runs on i386 and amd64, so there should be no problems if
  buf + sec->dofs_offset is not aligned (which is unlikely anyway).

Modified:
  stable/9/cddl/contrib/opensolaris/lib/libdtrace/common/drti.c
Directory Properties:
  stable/9/cddl/contrib/opensolaris/   (props changed)

Modified: stable/9/cddl/contrib/opensolaris/lib/libdtrace/common/drti.c
==============================================================================
--- stable/9/cddl/contrib/opensolaris/lib/libdtrace/common/drti.c	Sat Dec 31 13:37:25 2011	(r229087)
+++ stable/9/cddl/contrib/opensolaris/lib/libdtrace/common/drti.c	Sat Dec 31 13:43:51 2011	(r229088)
@@ -102,7 +102,7 @@ fixsymbol(Elf *e, Elf_Data *data, size_t
 	int ndx;
 
 	while (gelf_getsym(data, j++, &sym) != NULL) {
-		prb = (dof_probe_t *)(buf + sec->dofs_offset);
+		prb = (dof_probe_t *)(void *)(buf + sec->dofs_offset);
 
 		for (ndx = nprobes; ndx; ndx--, prb += 1) {
 			funcname = dofstrtab + prb->dofpr_func;


More information about the svn-src-stable-9 mailing list