PERFORCE change 95958 for review
John Birrell
jb at FreeBSD.org
Sun Apr 23 23:02:16 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=95958
Change 95958 by jb at jb_freebsd2 on 2006/04/23 23:01:28
Don't try to un-const-ise a string. gcc really does like that.
There is a mismatch between the type we use for curthread. Just
comment that out for now.
Affected files ...
.. //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_util.c#3 edit
Differences ...
==== //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_util.c#3 (text+ko) ====
@@ -84,12 +84,14 @@
static void
dtrace_errdebug(const char *str)
{
- int hval = dtrace_hash_str((char *)str) % DTRACE_ERRHASHSZ;
+ int hval = dtrace_hash_str(str) % DTRACE_ERRHASHSZ;
int occupied = 0;
mutex_enter(&dtrace_errlock);
dtrace_errlast = str;
+#if defined(sun)
dtrace_errthread = curthread;
+#endif
while (occupied++ < DTRACE_ERRHASHSZ) {
if (dtrace_errhash[hval].dter_msg == str) {
More information about the p4-projects
mailing list