diff options
author | Paul Jakma <paul@quagga.net> | 2009-06-30 16:12:49 +0100 |
---|---|---|
committer | Paul Jakma <paul@quagga.net> | 2009-06-30 16:12:49 +0100 |
commit | 41b2373cece77f0cc9a06fba076c99a7be653593 (patch) | |
tree | bed11b842b7a33e78e8c5012bf624946aeaf1edc /lib/thread.c | |
parent | bd2462425205a681d75e04c94a94bf4cea5da58b (diff) |
[lib/cleanup] Use a typedef for the thread type
* lib/thread.{c,h}: As per subject. This will avoid head-scratching for next
person who adds a thread-type and gets strange breakage.
Diffstat (limited to 'lib/thread.c')
-rw-r--r-- | lib/thread.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/thread.c b/lib/thread.c index 948bc210..47a9dc43 100644 --- a/lib/thread.c +++ b/lib/thread.c @@ -269,7 +269,7 @@ cpu_record_hash_print(struct hash_backet *bucket, { struct cpu_thread_history *totals = args[0]; struct vty *vty = args[1]; - unsigned char *filter = args[2]; + thread_type *filter = args[2]; struct cpu_thread_history *a = bucket->data; a = bucket->data; @@ -288,7 +288,7 @@ cpu_record_hash_print(struct hash_backet *bucket, } static void -cpu_record_print(struct vty *vty, unsigned char filter) +cpu_record_print(struct vty *vty, thread_type filter) { struct cpu_thread_history tmp; void *args[3] = {&tmp, vty, &filter}; @@ -323,7 +323,7 @@ DEFUN(show_thread_cpu, "Display filter (rwtexb)\n") { int i = 0; - unsigned char filter = 0xff; + thread_type filter = (thread_type) -1U; if (argc > 0) { |