Date: Fri, 7 Jul 2006 19:03:09 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 100924 for review Message-ID: <200607071903.k67J39ks062401@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=100924 Change 100924 by jb@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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607071903.k67J39ks062401>