From 8c328f1106cf0498333c2d8a96940e7b4581e316 Mon Sep 17 00:00:00 2001 From: hasso Date: Tue, 5 Oct 2004 21:01:23 +0000 Subject: 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. --- lib/thread.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'lib/thread.h') diff --git a/lib/thread.h b/lib/thread.h index 9a8c2bef..716a6a6c 100644 --- a/lib/thread.h +++ b/lib/thread.h @@ -74,7 +74,7 @@ struct thread struct cpu_thread_history { int (*func)(struct thread *); - char *funcname; + const char *funcname; unsigned int total_calls; unsigned long total, max; unsigned char types; @@ -138,21 +138,21 @@ struct cpu_thread_history { /* Prototypes. */ struct thread_master *thread_master_create (); struct thread *funcname_thread_add_read (struct thread_master *, - int (*)(struct thread *), void *, int, char*); + int (*)(struct thread *), void *, int, const char*); struct thread *funcname_thread_add_write (struct thread_master *, - int (*)(struct thread *), void *, int, char*); + int (*)(struct thread *), void *, int, const char*); struct thread *funcname_thread_add_timer (struct thread_master *, - int (*)(struct thread *), void *, long, char*); + int (*)(struct thread *), void *, long, const char*); struct thread *funcname_thread_add_timer_msec (struct thread_master *, - int (*)(struct thread *), void *, long, char*); + int (*)(struct thread *), void *, long, const char*); struct thread *funcname_thread_add_event (struct thread_master *, - int (*)(struct thread *), void *, int, char*); + int (*)(struct thread *), void *, int, const char*); void thread_cancel (struct thread *); void thread_cancel_event (struct thread_master *, void *); struct thread *thread_fetch (struct thread_master *, struct thread *); struct thread *funcname_thread_execute (struct thread_master *, - int (*)(struct thread *), void *, int, char *); + int (*)(struct thread *), void *, int, const char *); void thread_call (struct thread *); unsigned long thread_timer_remain_second (struct thread *); -- cgit v1.2.1