summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2008-01-13 20:23:35 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2008-01-13 20:23:35 +0000
commit33c918418a623a69c772f2ec530c21e889122158 (patch)
tree4a5ac54565514504c74fe1ccb103ba6371b0b5c0
parentdbe2b9af311c7e4f0eab402a7cc948a3d2206c91 (diff)
remove unused functions
from tobias@ ok miod@ tobias@
-rw-r--r--sbin/scsi/libscsi.c43
-rw-r--r--sbin/scsi/libscsi.h5
2 files changed, 2 insertions, 46 deletions
diff --git a/sbin/scsi/libscsi.c b/sbin/scsi/libscsi.c
index f7963dca7f4..b9cde8648d6 100644
--- a/sbin/scsi/libscsi.c
+++ b/sbin/scsi/libscsi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: libscsi.c,v 1.5 2005/12/21 01:40:23 millert Exp $ */
+/* $OpenBSD: libscsi.c,v 1.6 2008/01/13 20:23:34 chl Exp $ */
/* Copyright (c) 1994 HD Associates
* (contact: dufault@hda.com)
@@ -338,19 +338,6 @@ do_buff_decode(u_char *databuf, size_t len,
}
int
-scsireq_decode(scsireq_t *scsireq, char *fmt, ...)
-{
- va_list ap;
- int ret;
-
- va_start (ap, fmt);
- ret = do_buff_decode(scsireq->databuf, (size_t)scsireq->datalen,
- 0, 0, fmt, ap);
- va_end (ap);
- return (ret);
-}
-
-int
scsireq_decode_visit(scsireq_t *scsireq, char *fmt,
void (*arg_put)(void *, int , void *, int, char *), void *puthook)
{
@@ -364,18 +351,6 @@ scsireq_decode_visit(scsireq_t *scsireq, char *fmt,
}
int
-scsireq_buff_decode(u_char *buff, size_t len, char *fmt, ...)
-{
- va_list ap;
- int ret;
-
- va_start (ap, fmt);
- ret = do_buff_decode(buff, len, 0, 0, fmt, ap);
- va_end (ap);
- return (ret);
-}
-
-int
scsireq_buff_decode_visit(u_char *buff, size_t len, char *fmt,
void (*arg_put)(void *, int, void *, int, char *), void *puthook)
{
@@ -785,22 +760,6 @@ scsireq_t
}
int
-scsireq_encode(scsireq_t *scsireq, char *fmt, ...)
-{
- va_list ap;
- int ret;
-
- if (scsireq == 0)
- return 0;
-
- va_start(ap, fmt);
-
- ret = do_encode(scsireq->databuf, scsireq->datalen, 0, 0, 0, fmt, ap);
- va_end (ap);
- return (ret);
-}
-
-int
scsireq_buff_encode_visit(u_char *buff, size_t len, char *fmt,
int (*arg_get)(void *hook, char *field_name), void *gethook)
{
diff --git a/sbin/scsi/libscsi.h b/sbin/scsi/libscsi.h
index 5aa3d5d25a4..fd3c3bffcfb 100644
--- a/sbin/scsi/libscsi.h
+++ b/sbin/scsi/libscsi.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: libscsi.h,v 1.1 2003/07/23 23:10:23 deraadt Exp $ */
+/* $OpenBSD: libscsi.h,v 1.2 2008/01/13 20:23:34 chl Exp $ */
/* Copyright (c) 1994 HD Associates (hd@world.std.com)
* All rights reserved.
@@ -51,15 +51,12 @@
scsireq_t *scsireq_reset(scsireq_t *);
scsireq_t *scsireq_new(void);
-int scsireq_buff_decode(u_char *, size_t, char *, ...);
int scsireq_buff_decode_visit(u_char *, size_t, char *,
void (*a)(void *, int, void *, int, char *), void *);
-int scsireq_decode(scsireq_t *, char *, ...);
int scsireq_decode_visit(scsireq_t *, char *,
void (*)(void *, int, void *, int, char *), void *);
-int scsireq_encode(scsireq_t *, char *, ...);
int scsireq_encode_visit(scsireq_t *, char *,
int (*)(void *, char *), void *);
int scsireq_buff_encode_visit(u_char *, size_t, char *,