X-Git-Url: http://olsr.org/git/?p=olsrd.git;a=blobdiff_plain;f=src%2Fwin32%2Fifnet.c;h=9f6fd9465c1a6eb15d71ec94cf2f210b637a8e5f;hp=a4e2060e9cb007df0e07bc880c90dac3de98d75c;hb=0950912ceabc8cec60466293f515ff5b59414121;hpb=d62768de09bcffe225140dbe8e4138c1d6c73a1f diff --git a/src/win32/ifnet.c b/src/win32/ifnet.c index a4e2060e..9f6fd946 100644 --- a/src/win32/ifnet.c +++ b/src/win32/ifnet.c @@ -546,8 +546,7 @@ add_hemu_if(struct olsr_if *iface) ifp->olsr_socket = gethemusocket(&sin); if (ifp->olsr_socket < 0) { - fprintf(stderr, "Could not initialize socket... exiting!\n\n"); - exit(1); + olsr_exit("Could not initialize socket", 1); } } else { @@ -842,8 +841,7 @@ chk_if_up(struct olsr_if *iface, int debuglvl __attribute__ ((unused))) New->send_socket = getsocket(0, New); if (New->olsr_socket < 0) { - fprintf(stderr, "Could not initialize socket... exiting!\n\n"); - exit(1); + olsr_exit("Could not initialize socket", 1); } add_olsr_socket(New->olsr_socket, &olsr_input, NULL, NULL, SP_PR_READ);