summaryrefslogtreecommitdiffstats
path: root/libdimension/profile.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-04-03 21:30:15 -0400
committerTavian Barnes <tavianator@gmail.com>2011-04-03 21:30:15 -0400
commit5a535f9fac3f4b82f0b154b4c81fd1e2a8d62802 (patch)
tree2b642b87d97ab13b050e1ef9323725c0bbd5b5c6 /libdimension/profile.c
parent7bc2770af08e317b2076540050c68d2de55a11db (diff)
downloaddimension-5a535f9fac3f4b82f0b154b4c81fd1e2a8d62802.tar.xz
Don't use awkward (*fptr)() syntax.
Diffstat (limited to 'libdimension/profile.c')
-rw-r--r--libdimension/profile.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/libdimension/profile.c b/libdimension/profile.c
index ae3a4bb..f9dd2d9 100644
--- a/libdimension/profile.c
+++ b/libdimension/profile.c
@@ -68,7 +68,7 @@ dmnsn_delete_thread_profile(void *ptr)
if (pthread_mutex_lock(&dmnsn_profile_mutex) != 0) {
dmnsn_error("Couldn't lock mutex.");
}
- dmnsn_dictionary_apply(thread_profile, &dmnsn_profile_globalize);
+ dmnsn_dictionary_apply(thread_profile, dmnsn_profile_globalize);
if (pthread_mutex_unlock(&dmnsn_profile_mutex) != 0) {
dmnsn_error("Couldn't unlock mutex.");
}
@@ -80,8 +80,7 @@ dmnsn_delete_thread_profile(void *ptr)
static void
dmnsn_initialize_thread_profile(void)
{
- if (pthread_key_create(&dmnsn_thread_profile,
- &dmnsn_delete_thread_profile)
+ if (pthread_key_create(&dmnsn_thread_profile, dmnsn_delete_thread_profile)
!= 0)
{
dmnsn_error("pthread_key_create() failed.");
@@ -100,8 +99,7 @@ dmnsn_initialize_thread_profile(void)
static dmnsn_dictionary *
dmnsn_get_thread_profile(void)
{
- if (pthread_once(&dmnsn_thread_profile_once,
- &dmnsn_initialize_thread_profile)
+ if (pthread_once(&dmnsn_thread_profile_once, dmnsn_initialize_thread_profile)
!= 0)
{
dmnsn_error("pthread_once() failed.");
@@ -183,7 +181,7 @@ dmnsn_print_bad_predictions(void)
if (pthread_mutex_lock(&dmnsn_profile_mutex) != 0) {
dmnsn_error("Couldn't lock mutex.");
}
- dmnsn_dictionary_apply(dmnsn_profile, &dmnsn_print_bad_prediction);
+ dmnsn_dictionary_apply(dmnsn_profile, dmnsn_print_bad_prediction);
dmnsn_delete_dictionary(dmnsn_profile);
dmnsn_profile = NULL;
if (pthread_mutex_unlock(&dmnsn_profile_mutex) != 0) {