summaryrefslogtreecommitdiffstats
path: root/lib/thread.c
diff options
context:
space:
mode:
authorhasso <hasso>2004-10-05 21:01:23 +0000
committerhasso <hasso>2004-10-05 21:01:23 +0000
commitff2e9e3c3816b7b828bbb023639db52364d729ff (patch)
tree7c586b5a363b80f0ecb4ab63137f89747ea72dd5 /lib/thread.c
parent19290b43288f6636b6eca07156a4069324962751 (diff)
downloadquagga-ff2e9e3c3816b7b828bbb023639db52364d729ff.tar.bz2
quagga-ff2e9e3c3816b7b828bbb023639db52364d729ff.tar.xz
Number of warnings is down to 3 again in lib directory. A lot of const's
added to strings and a lot of int -> unsigned int changes.
Diffstat (limited to 'lib/thread.c')
-rw-r--r--lib/thread.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/thread.c b/lib/thread.c
index 474571e6..2847b8bf 100644
--- a/lib/thread.c
+++ b/lib/thread.c
@@ -382,7 +382,7 @@ thread_timer_remain_second (struct thread *thread)
/* Trim blankspace and "()"s */
static char *
-strip_funcname (char *funcname)
+strip_funcname (const char *funcname)
{
char buff[100];
char tmp, *ret, *e, *b = buff;
@@ -410,7 +410,7 @@ strip_funcname (char *funcname)
/* Get new thread. */
static struct thread *
thread_get (struct thread_master *m, u_char type,
- int (*func) (struct thread *), void *arg, char* funcname)
+ int (*func) (struct thread *), void *arg, const char* funcname)
{
struct thread *thread;
@@ -439,7 +439,7 @@ thread_get (struct thread_master *m, u_char type,
/* Add new read thread. */
struct thread *
funcname_thread_add_read (struct thread_master *m,
- int (*func) (struct thread *), void *arg, int fd, char* funcname)
+ int (*func) (struct thread *), void *arg, int fd, const char* funcname)
{
struct thread *thread;
@@ -462,7 +462,7 @@ funcname_thread_add_read (struct thread_master *m,
/* Add new write thread. */
struct thread *
funcname_thread_add_write (struct thread_master *m,
- int (*func) (struct thread *), void *arg, int fd, char* funcname)
+ int (*func) (struct thread *), void *arg, int fd, const char* funcname)
{
struct thread *thread;
@@ -487,7 +487,7 @@ funcname_thread_add_timer_timeval (struct thread_master *m,
int (*func) (struct thread *),
void *arg,
struct timeval *time_relative,
- char* funcname)
+ const char* funcname)
{
struct thread *thread;
struct timeval timer_now;
@@ -528,7 +528,7 @@ funcname_thread_add_timer_timeval (struct thread_master *m,
struct thread *
funcname_thread_add_timer (struct thread_master *m,
int (*func) (struct thread *),
- void *arg, long timer, char* funcname)
+ void *arg, long timer, const char* funcname)
{
struct timeval trel;
@@ -544,7 +544,7 @@ funcname_thread_add_timer (struct thread_master *m,
struct thread *
funcname_thread_add_timer_msec (struct thread_master *m,
int (*func) (struct thread *),
- void *arg, long timer, char* funcname)
+ void *arg, long timer, const char* funcname)
{
struct timeval trel;
@@ -561,7 +561,7 @@ funcname_thread_add_timer_msec (struct thread_master *m,
/* Add simple event thread. */
struct thread *
funcname_thread_add_event (struct thread_master *m,
- int (*func) (struct thread *), void *arg, int val, char* funcname)
+ int (*func) (struct thread *), void *arg, int val, const char* funcname)
{
struct thread *thread;
@@ -888,7 +888,7 @@ funcname_thread_execute (struct thread_master *m,
int (*func)(struct thread *),
void *arg,
int val,
- char* funcname)
+ const char* funcname)
{
struct thread dummy;