Removed unused variables.
This commit is contained in:
parent
5ca8a87f0a
commit
b77f77e32b
@ -44,7 +44,6 @@ fcntl(int fd, int cmd,...)
|
||||
int nonblock;
|
||||
int oldfd;
|
||||
int ret;
|
||||
int status;
|
||||
va_list ap;
|
||||
|
||||
/* Lock the file descriptor: */
|
||||
|
@ -29,7 +29,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: uthread_file.c,v 1.3 1998/04/29 09:58:47 jb Exp $
|
||||
* $Id: uthread_file.c,v 1.4 1998/06/09 23:20:44 jb Exp $
|
||||
*
|
||||
* POSIX stdio FILE locking functions. These assume that the locking
|
||||
* is only required at FILE structure level, not at file descriptor
|
||||
@ -181,8 +181,6 @@ do_lock(int idx, FILE *fp)
|
||||
void
|
||||
_flockfile_debug(FILE * fp, char *fname, int lineno)
|
||||
{
|
||||
int fd, flags;
|
||||
int status;
|
||||
int idx = file_idx(fp);
|
||||
struct file_lock *p;
|
||||
|
||||
@ -255,7 +253,6 @@ int
|
||||
_ftrylockfile(FILE * fp)
|
||||
{
|
||||
int ret = -1;
|
||||
int status;
|
||||
int idx = file_idx(fp);
|
||||
struct file_lock *p;
|
||||
|
||||
|
@ -42,7 +42,6 @@ pid_t
|
||||
fork(void)
|
||||
{
|
||||
int flags;
|
||||
int status;
|
||||
pid_t ret;
|
||||
pthread_t pthread;
|
||||
pthread_t pthread_next;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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.
|
||||
*/
|
||||
|
@ -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;
|
||||
|
@ -44,7 +44,6 @@ fcntl(int fd, int cmd,...)
|
||||
int nonblock;
|
||||
int oldfd;
|
||||
int ret;
|
||||
int status;
|
||||
va_list ap;
|
||||
|
||||
/* Lock the file descriptor: */
|
||||
|
@ -42,7 +42,6 @@ pid_t
|
||||
fork(void)
|
||||
{
|
||||
int flags;
|
||||
int status;
|
||||
pid_t ret;
|
||||
pthread_t pthread;
|
||||
pthread_t pthread_next;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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.
|
||||
*/
|
||||
|
@ -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;
|
||||
|
@ -44,7 +44,6 @@ fcntl(int fd, int cmd,...)
|
||||
int nonblock;
|
||||
int oldfd;
|
||||
int ret;
|
||||
int status;
|
||||
va_list ap;
|
||||
|
||||
/* Lock the file descriptor: */
|
||||
|
@ -42,7 +42,6 @@ pid_t
|
||||
fork(void)
|
||||
{
|
||||
int flags;
|
||||
int status;
|
||||
pid_t ret;
|
||||
pthread_t pthread;
|
||||
pthread_t pthread_next;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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.
|
||||
*/
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user