X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Factivate%2Factivate.c;h=5263969fcf572c1e1829fc59da8f87c849443a89;hb=c166a070553511e402de5ad216d3fb62b49bdacb;hp=07e46b9691a188d690964ef74f70e84f0ae0be94;hpb=9d458c0902cdc5d993fd2f78d36fb83a8130c81b;p=elogind.git diff --git a/src/activate/activate.c b/src/activate/activate.c index 07e46b969..5263969fc 100644 --- a/src/activate/activate.c +++ b/src/activate/activate.c @@ -58,7 +58,6 @@ static int add_epoll(int epoll_fd, int fd) { } static int make_socket_fd(const char* address, int flags) { - _cleanup_free_ char *p = NULL; SocketAddress a; int fd, r; @@ -289,6 +288,8 @@ static int help(void) { " -l --listen=ADDR Listen for raw connections at ADDR\n" " -a --accept Spawn separate child for each connection\n" " -h --help Show this help and exit\n" + " -E --environment=NAME[=VALUE]\n" + " Pass an environment variable to children\n" " --version Print version string and exit\n" "\n" "Note: file descriptors from sd_listen_fds() will be passed through.\n" @@ -317,7 +318,7 @@ static int parse_argv(int argc, char *argv[]) { assert(argc >= 0); assert(argv); - while ((c = getopt_long(argc, argv, "+hl:saE:", options, NULL)) >= 0) + while ((c = getopt_long(argc, argv, "+hl:aE:", options, NULL)) >= 0) switch(c) { case 'h': return help();