summaryrefslogtreecommitdiff
path: root/lib/thread.h
diff options
context:
space:
mode:
authorhasso <hasso>2004-10-05 21:01:23 +0000
committerhasso <hasso>2004-10-05 21:01:23 +0000
commit8c328f1106cf0498333c2d8a96940e7b4581e316 (patch)
tree9bf24cca6a68a9dd5d4dda586484e497d0c19ca6 /lib/thread.h
parent98c91ac6ac085713c00af00a6ac41779be6b50b3 (diff)
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.h')
-rw-r--r--lib/thread.h14
1 files changed, 7 insertions, 7 deletions
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 *);