]> git.decadent.org.uk Git - odhcp6c.git/blobdiff - src/script.c
Update license headers
[odhcp6c.git] / src / script.c
index f62ea5ef319fe965f489fd4456e77547ada56626..b94b25e9803acf8c0ce2cbc832a7d138c3ed661e 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * Copyright (C) 2012 Steven Barth <steven@midlink.org>
+ * Copyright (C) 2012-2013 Steven Barth <steven@midlink.org>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License v2 as published by
@@ -149,11 +149,10 @@ static void entry_to_env(const char *name, const void *data, size_t len, bool ho
                                        buf_len += strlen(&buf[buf_len]);
                                }
                                buf_len += snprintf(&buf[buf_len], 24, ",%u", e[i].valid);
+                               buf_len += snprintf(&buf[buf_len], 12, ",%u", e[i].priority);
                        } else {
                                buf_len += snprintf(&buf[buf_len], 24, ",%u,%u", e[i].preferred, e[i].valid);
                        }
-                       if (e[i].priority)
-                               buf_len += snprintf(&buf[buf_len], 12, ",%u", e[i].priority);
                }
                buf[buf_len++] = ' ';
        }
@@ -165,7 +164,6 @@ static void entry_to_env(const char *name, const void *data, size_t len, bool ho
 
 void script_call(const char *status)
 {
-       syslog(LOG_WARNING, "State for %s changed to %s", argv[1], status);
        size_t dns_len, search_len, custom_len, sntp_ip_len, sntp_dns_len;
        size_t sip_ip_len, sip_fqdn_len;