From: Sascha Wildner Date: Sun, 14 Dec 2008 17:53:02 +0000 (+0100) Subject: Adjust the bt_gethostbyaddr(3) prototype to match gethostbyaddr(3). X-Git-Tag: v2.3.0~239^2~10 X-Git-Url: http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/63bd4a3598b0650f8af8e72ad4fc9df23ecb2a2a Adjust the bt_gethostbyaddr(3) prototype to match gethostbyaddr(3). --- diff --git a/lib/libbluetooth/bluetooth.3 b/lib/libbluetooth/bluetooth.3 index c32fb64..6adc7d1 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 0177400..c3ff6a2 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 500206e..baadadb 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);