summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2014-01-02 10:08:36 +0100
committerGravatar Christian Hesse <mail@eworm.de>2014-01-02 10:08:36 +0100
commit007c236e7c08933b04847b2ac78983c5c8463410 (patch)
treec0bf58ba04bab910dd4482b5cb3ed5032afbadeb
parent2c80328bdcf601fc1a3a0e8f6819069c7ea04512 (diff)
downloaddyndhcpd-007c236e7c08933b04847b2ac78983c5c8463410.tar.gz
dyndhcpd-007c236e7c08933b04847b2ac78983c5c8463410.tar.zst
update copyright year
-rw-r--r--config.def.h2
-rw-r--r--dyndhcpd.c9
2 files changed, 5 insertions, 6 deletions
diff --git a/config.def.h b/config.def.h
index 367f05c..22216e6 100644
--- a/config.def.h
+++ b/config.def.h
@@ -1,5 +1,5 @@
/*
- * (C) 2013 by Christian Hesse <mail@eworm.de>
+ * (C) 2013-2014 by Christian Hesse <mail@eworm.de>
*
* This software may be used and distributed according to the terms
* of the GNU General Public License, incorporated herein by reference.
diff --git a/dyndhcpd.c b/dyndhcpd.c
index cadf96b..be21af6 100644
--- a/dyndhcpd.c
+++ b/dyndhcpd.c
@@ -1,5 +1,5 @@
/*
- * (C) 2013 by Christian Hesse <mail@eworm.de>
+ * (C) 2013-2014 by Christian Hesse <mail@eworm.de>
*
* This software may be used and distributed according to the terms
* of the GNU General Public License, incorporated herein by reference.
@@ -38,7 +38,7 @@ char * str_replace(char * original, const char * pattern, const char * replaceme
char * const returned = (char *) malloc(sizeof(char) * (retlen + 1));
if (returned != NULL) {
- /* copy the original string,
+ /* copy the original string,
* replacing all the instances of the pattern */
char * retptr = returned;
for (oriptr = original; (patloc = strstr(oriptr, pattern)); oriptr = patloc + patlen) {
@@ -133,12 +133,12 @@ int main(int argc, char ** argv) {
if (strcmp(interface, ifa->ifa_name) != 0)
continue;
if (ifa->ifa_addr == NULL)
- continue;
+ continue;
if (!(ifa->ifa_flags & IFF_UP))
continue;
if (ifa->ifa_addr->sa_family != AF_INET)
continue;
-
+
s4 = (struct sockaddr_in *)ifa->ifa_addr;
v_host = &s4->sin_addr;
@@ -228,7 +228,6 @@ int main(int argc, char ** argv) {
fprintf(stderr, "Failed converting number to string\n");
goto out;
}
-
}
fprintf(stderr, "Interface not found or no address.\n");