PERFORCE change 100924 for review

John Birrell jb at FreeBSD.org
Fri Jul 7 19:03:10 UTC 2006


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

Change 100924 by jb at jb_freebsd2 on 2006/07/07 19:03:03

	Cast to a long variable (to avoid a gcc warning) and then allow
	that to be truncated to an int. Yes, this is a hack.

Affected files ...

.. //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_clone.c#5 edit

Differences ...

==== //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_clone.c#5 (text+ko) ====

@@ -50,7 +50,7 @@
 		return;
 
 	/* Allocate a unique minor number. */
-	u = (int) vmem_alloc(dtrace_minor, 1, VM_BESTFIT | VM_SLEEP);
+	u = (long) vmem_alloc(dtrace_minor, 1, VM_BESTFIT | VM_SLEEP);
 
 	/* Clone the device to the new minor number. */
 	if (clone_create(&dtrace_clones, &dtrace_cdevsw, &u, dev, 0) != 0)


More information about the p4-projects mailing list