Changeset 693:16c373df0947 in freeDiameter for libfdproto/init.c
- Timestamp:
- Jan 21, 2011, 3:12:54 PM (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdproto/init.c
r687 r693 39 39 pthread_mutex_t fd_cpu_mtx_dummy = PTHREAD_MUTEX_INITIALIZER; 40 40 41 /* function to free the threadnames */ 42 static void freelogstr(void * str) { 43 if (TRACE_BOOL(ANNOYING)) { 44 if (str) { 45 fd_log_debug("(Thread '%s' terminating)\n", (char *)str); 46 } 47 } 48 free(str); 49 } 50 41 51 /* Initialize library variables and threads */ 42 52 int fd_libproto_init() … … 45 55 46 56 /* Create the thread key that contains thread name for debug messages */ 47 ret = pthread_key_create(&fd_log_thname, free );57 ret = pthread_key_create(&fd_log_thname, freelogstr); 48 58 if (ret != 0) { 49 59 fprintf(stderr, "Error initializing the libfreeDiameter library: %s\n", strerror(ret) );
Note: See TracChangeset
for help on using the changeset viewer.