aboutsummaryrefslogtreecommitdiff
path: root/sys/compat
diff options
context:
space:
mode:
authorGary Palmer <gpalmer@FreeBSD.org>1996-06-12 05:11:41 +0000
committerGary Palmer <gpalmer@FreeBSD.org>1996-06-12 05:11:41 +0000
commitc23670e2949d9e72d99006b4f3be147c712f2f89 (patch)
treec727af841ff654969571e10a8dc92e2a987cd0c2 /sys/compat
parent1409e0b3841780591862f4165059fbfe400a0e0d (diff)
downloadsrc-c23670e2949d9e72d99006b4f3be147c712f2f89.tar.gz
src-c23670e2949d9e72d99006b4f3be147c712f2f89.zip
Clean up -Wunused warnings.
Reviewed by: bde
Notes
Notes: svn path=/head/; revision=16322
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/linux/linux_ioctl.c8
-rw-r--r--sys/compat/linux/linux_ipc.c3
-rw-r--r--sys/compat/linux/linux_misc.c5
3 files changed, 6 insertions, 10 deletions
diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c
index 9c9c6688d5b8..821d84498bdc 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 854766b99cc8..72ebd20abd7c 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 61127711d81f..f412cf0bcf02 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);