summaryrefslogtreecommitdiffstats
path: root/lib/libpthread
diff options
context:
space:
mode:
authoralex <alex@FreeBSD.org>1998-09-07 21:55:01 +0000
committeralex <alex@FreeBSD.org>1998-09-07 21:55:01 +0000
commitd09071d106878ed2978ca69d2d46fcd80a021f53 (patch)
tree13a86a44f6e6a4aa9d4f3953eb60f8b722198be4 /lib/libpthread
parentfff0f057805582731b159f9a5aa58c84fe3b323e (diff)
downloadFreeBSD-src-d09071d106878ed2978ca69d2d46fcd80a021f53.zip
FreeBSD-src-d09071d106878ed2978ca69d2d46fcd80a021f53.tar.gz
Removed unused variables.
Diffstat (limited to 'lib/libpthread')
-rw-r--r--lib/libpthread/thread/thr_fcntl.c1
-rw-r--r--lib/libpthread/thread/thr_fork.c1
-rw-r--r--lib/libpthread/thread/thr_kern.c3
-rw-r--r--lib/libpthread/thread/thr_mutex.c1
-rw-r--r--lib/libpthread/thread/thr_sig.c4
-rw-r--r--lib/libpthread/thread/thr_write.c3
6 files changed, 2 insertions, 11 deletions
diff --git a/lib/libpthread/thread/thr_fcntl.c b/lib/libpthread/thread/thr_fcntl.c
index eecda60..6ea013a 100644
--- a/lib/libpthread/thread/thr_fcntl.c
+++ b/lib/libpthread/thread/thr_fcntl.c
@@ -44,7 +44,6 @@ fcntl(int fd, int cmd,...)
int nonblock;
int oldfd;
int ret;
- int status;
va_list ap;
/* Lock the file descriptor: */
diff --git a/lib/libpthread/thread/thr_fork.c b/lib/libpthread/thread/thr_fork.c
index d2b6726..d56f98d 100644
--- a/lib/libpthread/thread/thr_fork.c
+++ b/lib/libpthread/thread/thr_fork.c
@@ -42,7 +42,6 @@ pid_t
fork(void)
{
int flags;
- int status;
pid_t ret;
pthread_t pthread;
pthread_t pthread_next;
diff --git a/lib/libpthread/thread/thr_kern.c b/lib/libpthread/thread/thr_kern.c
index 32d0a76..ce17cf8 100644
--- a/lib/libpthread/thread/thr_kern.c
+++ b/lib/libpthread/thread/thr_kern.c
@@ -29,7 +29,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: uthread_kern.c,v 1.10 1998/04/29 09:59:02 jb Exp $
+ * $Id: uthread_kern.c,v 1.11 1998/04/30 21:50:29 jb Exp $
*
*/
#include <errno.h>
@@ -59,7 +59,6 @@ _thread_kern_sched(struct sigcontext * scp)
#ifndef __alpha__
char *fdata;
#endif
- int i;
int prio = -1;
pthread_t pthread;
pthread_t pthread_h = NULL;
diff --git a/lib/libpthread/thread/thr_mutex.c b/lib/libpthread/thread/thr_mutex.c
index 0461278..4f4aa8a 100644
--- a/lib/libpthread/thread/thr_mutex.c
+++ b/lib/libpthread/thread/thr_mutex.c
@@ -46,7 +46,6 @@ pthread_mutex_init(pthread_mutex_t * mutex,
enum pthread_mutextype type;
pthread_mutex_t pmutex;
int ret = 0;
- int status;
if (mutex == NULL) {
ret = EINVAL;
diff --git a/lib/libpthread/thread/thr_sig.c b/lib/libpthread/thread/thr_sig.c
index be3da9a..d0d5f8b 100644
--- a/lib/libpthread/thread/thr_sig.c
+++ b/lib/libpthread/thread/thr_sig.c
@@ -105,7 +105,6 @@ _thread_sig_handler(int sig, int code, struct sigcontext * scp)
{
char c;
int i;
- int dispatch = 0;
pthread_t pthread;
/*
@@ -234,9 +233,6 @@ _thread_sig_handler(int sig, int code, struct sigcontext * scp)
void
_thread_signal(pthread_t pthread, int sig)
{
- pthread_t saved;
- struct sigaction act;
-
/*
* Flag the signal as pending. It will be dispatched later.
*/
diff --git a/lib/libpthread/thread/thr_write.c b/lib/libpthread/thread/thr_write.c
index 7aad66b1..23cef52 100644
--- a/lib/libpthread/thread/thr_write.c
+++ b/lib/libpthread/thread/thr_write.c
@@ -29,7 +29,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: uthread_write.c,v 1.8 1998/06/10 22:28:45 jb Exp $
+ * $Id: uthread_write.c,v 1.9 1998/06/14 09:36:11 jb Exp $
*
*/
#include <sys/types.h>
@@ -45,7 +45,6 @@ ssize_t
write(int fd, const void *buf, size_t nbytes)
{
int blocking;
- int status;
int type;
ssize_t n;
ssize_t num = 0;
OpenPOWER on IntegriCloud