/**
- * 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
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++] = ' ';
}
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;