svn commit: r197794 - head/sys/kern

Robert Watson rwatson at FreeBSD.org
Mon Oct 5 22:23:13 UTC 2009


Author: rwatson
Date: Mon Oct  5 22:23:12 2009
New Revision: 197794
URL: http://svn.freebsd.org/changeset/base/197794

Log:
  Fix build on amd64, where sysctl arg1 is a pointer.
  
  Reported by:	Mr Tinderbox
  MFC after:	3 months

Modified:
  head/sys/kern/uipc_usrreq.c

Modified: head/sys/kern/uipc_usrreq.c
==============================================================================
--- head/sys/kern/uipc_usrreq.c	Mon Oct  5 21:11:04 2009	(r197793)
+++ head/sys/kern/uipc_usrreq.c	Mon Oct  5 22:23:12 2009	(r197794)
@@ -1468,7 +1468,7 @@ unp_pcblist(SYSCTL_HANDLER_ARGS)
 		break;
 
 	default:
-		panic("unp_pcblist: arg1 %d", (intptr_t)arg1);
+		panic("unp_pcblist: arg1 %d", (int)(intptr_t)arg1);
 	}
 
 	/*


More information about the svn-src-all mailing list