summaryrefslogtreecommitdiff
path: root/sys/dev/usb/usb_port.h
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2004-08-30 03:06:49 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2004-08-30 03:06:49 +0000
commit0648121998f342da9e8400286238c62d3620ea4e (patch)
treefd0d702fa411308e1f9812115ab5e9a22af3f5b5 /sys/dev/usb/usb_port.h
parent3d8f6ae026730411ebf21832162c41200423362f (diff)
Remove 'usb_'realloc() usage because it doesn't know the size of the old
buffer, thus may copy too much, causing a memory fault. ok millert, dlg, henning, tdeval, otto
Diffstat (limited to 'sys/dev/usb/usb_port.h')
-rw-r--r--sys/dev/usb/usb_port.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/usb/usb_port.h b/sys/dev/usb/usb_port.h
index 46b14e7579f..50d58327ce6 100644
--- a/sys/dev/usb/usb_port.h
+++ b/sys/dev/usb/usb_port.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: usb_port.h,v 1.49 2004/05/26 04:26:58 deraadt Exp $ */
+/* $OpenBSD: usb_port.h,v 1.50 2004/08/30 03:06:48 drahn Exp $ */
/* $NetBSD: usb_port.h,v 1.62 2003/02/15 18:33:30 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/usb_port.h,v 1.21 1999/11/17 22:33:47 n_hibma Exp $ */
@@ -296,9 +296,6 @@ typedef int usb_malloc_type;
#define slinear16_to_ulinear8_le linear16_to_ulinear8_le
#define slinear16_to_ulinear8_be linear16_to_ulinear8_be
-#define realloc usb_realloc
-void *usb_realloc(void *, u_int, int, int);
-
typedef struct device *device_ptr_t;
#define USBBASEDEVICE struct device
#define USBDEV(bdev) (&(bdev))