diff options
author | Marco S Hyman <marc@cvs.openbsd.org> | 2003-01-31 04:46:18 +0000 |
---|---|---|
committer | Marco S Hyman <marc@cvs.openbsd.org> | 2003-01-31 04:46:18 +0000 |
commit | 68795d4df128d80b54c55c9e7769c34c96270983 (patch) | |
tree | 1182fb066f0927d28dfb77b60c677da68c8f63f5 /lib/libpthread/uthread/uthread_info_openbsd.c | |
parent | 132b289627ab477bb921ce53d385e7900cdcd50f (diff) |
Create a siginfo_t for thread-to-thread kill.
Clean up (compiler warning elimination). Compile check options added
but commented out as they have not been checked on all architectures, yet.
Diffstat (limited to 'lib/libpthread/uthread/uthread_info_openbsd.c')
-rw-r--r-- | lib/libpthread/uthread/uthread_info_openbsd.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/libpthread/uthread/uthread_info_openbsd.c b/lib/libpthread/uthread/uthread_info_openbsd.c index 0b7881d6477..54ccd6127ba 100644 --- a/lib/libpthread/uthread/uthread_info_openbsd.c +++ b/lib/libpthread/uthread/uthread_info_openbsd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uthread_info_openbsd.c,v 1.7 2002/12/11 23:21:19 marc Exp $ */ +/* $OpenBSD: uthread_info_openbsd.c,v 1.8 2003/01/31 04:46:17 marc Exp $ */ /* * Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au> @@ -48,7 +48,7 @@ int _thread_dump_verbose = 0; struct s_thread_info { enum pthread_state state; - char *name; + const char *name; }; /* Static variables: */ @@ -96,15 +96,12 @@ truncname(const char *name, int maxlen) } static void -_thread_dump_entry(pthread, fd, verbose) - pthread_t pthread; - int fd; - int verbose; +_thread_dump_entry(pthread_t pthread, int fd, int verbose) { const char *state; char s[512]; char location[30]; - int j; + unsigned int j; /* Find last known file:line checkpoint: */ if (pthread->fname && pthread->state != PS_RUNNING) @@ -440,7 +437,7 @@ _thread_dump_data(const void *addr, int len) len = 0; memset(data, ' ', DUMP_BUFLEN); } - addr += 8; + (char *) addr += 8; sprintf( data, "%18p: ", d ); while (count--) { |