X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=socket-util.c;h=0f5140ec5b9769a17d963c9e7c19a7dc271e28d6;hb=09a3bb9302e3c2562648e9a1ce7b2c800249852a;hp=0282dd2f3fe1b3ae367e1243caac8ba4a2b86660;hpb=1c24e7bd1286d16a7125aeeee0470ea0685c8318;p=elogind.git diff --git a/socket-util.c b/socket-util.c index 0282dd2f3..0f5140ec5 100644 --- a/socket-util.c +++ b/socket-util.c @@ -1,5 +1,24 @@ /*-*- Mode: C; c-basic-offset: 8 -*-*/ +/*** + This file is part of systemd. + + Copyright 2010 Lennart Poettering + + systemd is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + systemd is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with systemd; If not, see . +***/ + #include #include #include @@ -84,7 +103,6 @@ int socket_address_parse(SocketAddress *a, const char *s) { } else { if ((e = strchr(s, ':'))) { - int r; if ((r = safe_atou(e+1, &u)) < 0) return r;