summaryrefslogtreecommitdiff
path: root/usr/src/lib/libcpc
diff options
context:
space:
mode:
authorrab <none@none>2005-08-22 15:35:14 -0700
committerrab <none@none>2005-08-22 15:35:14 -0700
commit1a6fa3a5205c95d7c4ea1caa5f0f9b408e0a2c1b (patch)
treef6e7356c470feafa6b585677fd31d5d7f960d6f3 /usr/src/lib/libcpc
parentf55ce205b4982f6d24998fb468599a00f56b0a7b (diff)
downloadillumos-joyent-1a6fa3a5205c95d7c4ea1caa5f0f9b408e0a2c1b.tar.gz
6309240 gcc and libcpc don't get along
Diffstat (limited to 'usr/src/lib/libcpc')
-rw-r--r--usr/src/lib/libcpc/common/obsoleted.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/lib/libcpc/common/obsoleted.c b/usr/src/lib/libcpc/common/obsoleted.c
index 776945dd23..7c6d3b805e 100644
--- a/usr/src/lib/libcpc/common/obsoleted.c
+++ b/usr/src/lib/libcpc/common/obsoleted.c
@@ -20,7 +20,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -145,13 +145,13 @@ cpc_take_sample(cpc_event_t *this)
int
cpc_count_usr_events(int enable)
{
- return (syscall(SYS_cpc, CPC_USR_EVENTS, -1, (void *)enable, 0));
+ return (syscall(SYS_cpc, CPC_USR_EVENTS, -1, enable, 0));
}
int
cpc_count_sys_events(int enable)
{
- return (syscall(SYS_cpc, CPC_SYS_EVENTS, -1, (void *)enable, 0));
+ return (syscall(SYS_cpc, CPC_SYS_EVENTS, -1, enable, 0));
}
int