From 63bd4a3598b0650f8af8e72ad4fc9df23ecb2a2a Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Sun, 14 Dec 2008 18:53:02 +0100 Subject: [PATCH] Adjust the bt_gethostbyaddr(3) prototype to match gethostbyaddr(3). --- lib/libbluetooth/bluetooth.3 | 2 +- lib/libbluetooth/bluetooth.c | 2 +- lib/libbluetooth/bluetooth.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libbluetooth/bluetooth.3 b/lib/libbluetooth/bluetooth.3 index c32fb642e1..6adc7d1389 100644 --- a/lib/libbluetooth/bluetooth.3 +++ b/lib/libbluetooth/bluetooth.3 @@ -54,7 +54,7 @@ .Ft struct hostent * .Fn bt_gethostbyname "const char *name" .Ft struct hostent * -.Fn bt_gethostbyaddr "const char *addr" "int len" "int type" +.Fn bt_gethostbyaddr "const void *addr" "socklen_t len" "int type" .Ft struct hostent * .Fn bt_gethostent void .Ft void diff --git a/lib/libbluetooth/bluetooth.c b/lib/libbluetooth/bluetooth.c index 0177400f3f..c3ff6a2007 100644 --- a/lib/libbluetooth/bluetooth.c +++ b/lib/libbluetooth/bluetooth.c @@ -79,7 +79,7 @@ found: } struct hostent * -bt_gethostbyaddr(char const *addr, socklen_t len, int type) +bt_gethostbyaddr(void const *addr, socklen_t len, int type) { struct hostent *p; diff --git a/lib/libbluetooth/bluetooth.h b/lib/libbluetooth/bluetooth.h index 500206e97f..baadadb43f 100644 --- a/lib/libbluetooth/bluetooth.h +++ b/lib/libbluetooth/bluetooth.h @@ -51,7 +51,7 @@ __BEGIN_DECLS */ struct hostent * bt_gethostbyname (char const *); -struct hostent * bt_gethostbyaddr (char const *, socklen_t, int); +struct hostent * bt_gethostbyaddr (void const *, socklen_t, int); struct hostent * bt_gethostent (void); void bt_sethostent (int); void bt_endhostent (void); -- 2.41.0