diff options
author | gpalmer <gpalmer@FreeBSD.org> | 1996-06-12 05:11:41 +0000 |
---|---|---|
committer | gpalmer <gpalmer@FreeBSD.org> | 1996-06-12 05:11:41 +0000 |
commit | 57c3ebc617f6ed31240847c6fce74931a372824c (patch) | |
tree | c727af841ff654969571e10a8dc92e2a987cd0c2 /sys/compat | |
parent | d356aa8b627cecbc5a3a5e98327366686498962d (diff) | |
download | FreeBSD-src-57c3ebc617f6ed31240847c6fce74931a372824c.zip FreeBSD-src-57c3ebc617f6ed31240847c6fce74931a372824c.tar.gz |
Clean up -Wunused warnings.
Reviewed by: bde
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/linux/linux_ioctl.c | 8 | ||||
-rw-r--r-- | sys/compat/linux/linux_ipc.c | 3 | ||||
-rw-r--r-- | sys/compat/linux/linux_misc.c | 5 |
3 files changed, 6 insertions, 10 deletions
diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c index 9c9c668..821d844 100644 --- a/sys/compat/linux/linux_ioctl.c +++ b/sys/compat/linux/linux_ioctl.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: linux_ioctl.c,v 1.8 1996/03/04 11:15:19 peter Exp $ + * $Id: linux_ioctl.c,v 1.9 1996/03/10 22:30:53 peter Exp $ */ #include <sys/param.h> @@ -122,7 +122,7 @@ static void bsd_to_linux_termios(struct termios *bsd_termios, struct linux_termios *linux_termios) { - int i, speed; + int i; #ifdef DEBUG printf("LINUX: BSD termios structure (input):\n"); @@ -263,7 +263,7 @@ static void linux_to_bsd_termios(struct linux_termios *linux_termios, struct termios *bsd_termios) { - int i, speed; + int i; #ifdef DEBUG printf("LINUX: LINUX termios structure (input):\n"); printf("i=%08x o=%08x c=%08x l=%08x line=%d\n", @@ -451,10 +451,8 @@ int linux_ioctl(struct proc *p, struct linux_ioctl_args *args, int *retval) { struct termios bsd_termios; - struct winsize bsd_winsize; struct linux_termios linux_termios; struct linux_termio linux_termio; - struct linux_winsize linux_winsize; struct filedesc *fdp = p->p_fd; struct file *fp; int (*func)(struct file *fp, int com, caddr_t data, struct proc *p); diff --git a/sys/compat/linux/linux_ipc.c b/sys/compat/linux/linux_ipc.c index 854766b..72ebd20 100644 --- a/sys/compat/linux/linux_ipc.c +++ b/sys/compat/linux/linux_ipc.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: linux_ipc.c,v 1.6 1996/01/08 04:34:54 peter Exp $ + * $Id: linux_ipc.c,v 1.7 1996/03/02 19:37:56 peter Exp $ */ @@ -44,7 +44,6 @@ static int linux_semget __P((struct proc *, struct linux_ipc_args *, int *)); static int linux_semctl __P((struct proc *, struct linux_ipc_args *, int *)); static int linux_msgsnd __P((struct proc *, struct linux_ipc_args *, int *)); static int linux_msgrcv __P((struct proc *, struct linux_ipc_args *, int *)); -static int linux_msgop __P((struct proc *, struct linux_ipc_args *, int *)); static int linux_msgctl __P((struct proc *, struct linux_ipc_args *, int *)); static int linux_shmat __P((struct proc *, struct linux_ipc_args *, int *)); static int linux_shmdt __P((struct proc *, struct linux_ipc_args *, int *)); diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 6112771..f412cf0 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: linux_misc.c,v 1.18 1996/04/07 17:38:49 bde Exp $ + * $Id: linux_misc.c,v 1.19 1996/05/02 10:43:13 phk Exp $ */ #include <sys/param.h> @@ -166,7 +166,6 @@ linux_uselib(struct proc *p, struct linux_uselib_args *args, int *retval) unsigned long file_offset; vm_offset_t buffer; unsigned long bss_size; - char *ptr; int error; caddr_t sg; int locked; @@ -683,7 +682,7 @@ linux_times(struct proc *p, struct linux_times_args *args, int *retval) struct timeval tv; struct linux_times_argv tms; struct rusage ru; - int error, s; + int error; #ifdef DEBUG printf("Linux-emul(%d): times(*)\n", p->p_pid); |