Date: Sun, 23 Apr 2006 22:58:08 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 95957 for review Message-ID: <200604232258.k3NMw8RX040386@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=95957 Change 95957 by jb@jb_freebsd2 on 2006/04/23 22:57:52 The const-ise the string passed to the hash function. Affected files ... .. //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace.c#13 edit .. //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_hash.c#3 edit Differences ... ==== //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace.c#13 (text+ko) ==== @@ -480,7 +480,7 @@ static uint16_t dtrace_format_add(dtrace_state_t *, char *); static uint64_t dtrace_dif_variable(dtrace_mstate_t *, dtrace_state_t *, uint64_t, uint64_t); static uint64_t dtrace_helper(int, dtrace_mstate_t *, dtrace_state_t *, uint64_t, uint64_t); -static uint_t dtrace_hash_str(char *); +static uint_t dtrace_hash_str(const char *); static void dtrace_actdesc_release(dtrace_actdesc_t *, dtrace_vstate_t *); static void dtrace_action_breakpoint(dtrace_ecb_t *); static void dtrace_action_chill(dtrace_mstate_t *, hrtime_t); ==== //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_hash.c#3 (text+ko) ==== @@ -11,7 +11,7 @@ * specified.) */ static uint_t -dtrace_hash_str(char *p) +dtrace_hash_str(const char *p) { unsigned int g; uint_t hval = 0;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604232258.k3NMw8RX040386>