summaryrefslogtreecommitdiffstats
path: root/ax25mond/ax25mond.c
diff options
context:
space:
mode:
Diffstat (limited to 'ax25mond/ax25mond.c')
-rw-r--r--ax25mond/ax25mond.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ax25mond/ax25mond.c b/ax25mond/ax25mond.c
index 928b8ed..2d19be0 100644
--- a/ax25mond/ax25mond.c
+++ b/ax25mond/ax25mond.c
@@ -108,7 +108,7 @@ struct sockaddr *build_sockaddr(const char *name, int *addrlen)
addr.si.sin_addr.s_addr = INADDR_ANY;
} else if (!strcmp(host_name, "loopback")) {
addr.si.sin_addr.s_addr = inet_addr("127.0.0.1");
- } else if ((addr.si.sin_addr.s_addr = inet_addr(host_name)) == -1L) {
+ } else if ((addr.si.sin_addr.s_addr = inet_addr(host_name)) == -1) {
struct hostent *hp = gethostbyname(host_name);
endhostent();
if (!hp)