X-Git-Url: https://git.decadent.org.uk/gitweb/?p=ap-utils.git;a=blobdiff_plain;f=lib%2Fap_search.c;fp=lib%2Fap_search.c;h=fd89e868fe35e1d4467af10d48b7c18263c46ca5;hp=a633d0d2cf339d8e50558b0d68c63f0d49f31a2f;hb=16204dfc7715783c2ebdfb55fc44fb9344613a76;hpb=17638f5bff2fddb825562f9242a364674aa5fb94 diff --git a/lib/ap_search.c b/lib/ap_search.c index a633d0d..fd89e86 100644 --- a/lib/ap_search.c +++ b/lib/ap_search.c @@ -100,13 +100,13 @@ void scan_local_segment (struct sockaddr_in *from, struct sockaddr_in *to, print_help(_("Please wait while scanning, or press 'Q' to quit.")); if ((s2 = socket(PF_INET, SOCK_DGRAM, 0)) == -1) { - print_helperr(CREATE_SOCKET_ERROR); + print_helperr(ERR_CREATING_SOCKET); getch(); return; } if (bind(s2, (struct sockaddr *) from, SIZE) == -1) { - print_helperr(BIND_SOCKET_ERROR); + print_helperr(ERR_BINDING_SOCKET); getch(); goto close_ret; } @@ -347,7 +347,7 @@ void ap_search() wrefresh(main_sub); if ((s1 = socket(PF_INET, SOCK_DGRAM, 0)) == -1) { - print_helperr(CREATE_SOCKET_ERROR); + print_helperr(ERR_CREATING_SOCKET); goto wait_quit; }