summaryrefslogtreecommitdiff
path: root/sbin/scsi
diff options
context:
space:
mode:
authordgregor <dgregor@cvs.openbsd.org>1997-06-24 02:03:01 +0000
committerdgregor <dgregor@cvs.openbsd.org>1997-06-24 02:03:01 +0000
commit98888a8f673b775b3a4a76a1b22ec894734ef078 (patch)
treebd4bbc4c8ea0e6a180c1636ae644393288949979 /sbin/scsi
parente137aaab7dd004afca06d96b9e232445b245f6bb (diff)
Fix void * -> int casts -- change int's to long's
Diffstat (limited to 'sbin/scsi')
-rw-r--r--sbin/scsi/scsi.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sbin/scsi/scsi.c b/sbin/scsi/scsi.c
index 716a442127e..0904f751a74 100644
--- a/sbin/scsi/scsi.c
+++ b/sbin/scsi/scsi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsi.c,v 1.2 1997/01/15 23:41:41 millert Exp $ */
+/* $OpenBSD: scsi.c,v 1.3 1997/06/24 02:03:00 dgregor Exp $ */
/* $FreeBSD: scsi.c,v 1.11 1996/04/06 11:00:28 joerg Exp $ */
/*
@@ -244,7 +244,7 @@ void arg_put(void *hook, int letter, void *arg, int count, char *name)
{
case 'i':
case 'b':
- printf("%d ", (int)arg);
+ printf("%ld ", (long)arg);
break;
case 'c':
@@ -608,8 +608,8 @@ static char *mode_lookup(int page)
*/
struct editinfo
{
- int can_edit;
- int default_value;
+ long can_edit;
+ long default_value;
} editinfo[64]; /* XXX Bogus fixed size */
static int editind;
@@ -676,7 +676,7 @@ edit_check(void *hook, int letter, void *arg, int count, char *name)
fprintf(stderr, "edit table overflow\n");
exit(ENOMEM);
}
- editinfo[editind].can_edit = ((int)arg != 0);
+ editinfo[editind].can_edit = ((long)arg != 0);
editind++;
}
@@ -688,7 +688,7 @@ edit_defaults(void *hook, int letter, void *arg, int count, char *name)
exit(-1);
}
- editinfo[editind].default_value = ((int)arg);
+ editinfo[editind].default_value = ((long)arg);
editind++;
}
@@ -701,7 +701,7 @@ edit_report(void *hook, int letter, void *arg, int count, char *name)
exit(-1);
}
- fprintf(edit_file, "%s: %d\n", name, (int)arg);
+ fprintf(edit_file, "%s: %ld\n", name, (long)arg);
}
editind++;