|
|
| version 1.1, 2012/02/21 23:16:02 | version 1.1.1.2, 2013/07/22 00:32:35 |
|---|---|
| Line 1 | Line 1 |
| /* $Id$ */ | /* $Id$ */ |
| /* MiniUPnP project | /* MiniUPnP project |
| * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ | * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ |
| * (c) 2006 Thomas Bernard | * (c) 2006-2012 Thomas Bernard |
| * This software is subject to the conditions detailed | * This software is subject to the conditions detailed |
| * in the LICENCE file provided within the distribution */ | * in the LICENCE file provided within the distribution */ |
| Line 14 | Line 14 |
| #include <sys/un.h> | #include <sys/un.h> |
| #include <signal.h> | #include <signal.h> |
| #include "macros.h" | |
| #if 0 | #if 0 |
| static void sighandler(int sig) | static void sighandler(int sig) |
| { | { |
| Line 30 main(int argc, char * * argv) | Line 32 main(int argc, char * * argv) |
| int l; | int l; |
| int s; | int s; |
| struct sockaddr_un addr; | struct sockaddr_un addr; |
| UNUSED(argc); | |
| UNUSED(argv); | |
| // signal(SIGINT, sighandler); | /*signal(SIGINT, sighandler);*/ |
| s = socket(AF_UNIX, SOCK_STREAM, 0); | s = socket(AF_UNIX, SOCK_STREAM, 0); |
| if(s<0) | if(s<0) |
| { | { |