diff --git a/src/daemon/globals.c b/src/daemon/globals.c
index 9b0aec739997c1af2419a021b87df8e57e311615..3d3c7ab2b7cfcb6a125783fdc95fcd792ce320ca 100644 (file)
--- a/src/daemon/globals.c
+++ b/src/daemon/globals.c
* DEALINGS IN THE SOFTWARE.
**/
-#include "common.h"
#include "globals.h"
+#include "common.h"
#if HAVE_KSTAT_H
#include <kstat.h>
*/
char *hostname_g;
cdtime_t interval_g;
-int timeout_g;
+int timeout_g;
#if HAVE_KSTAT_H
kstat_ctl_t *kc;
#endif
void hostname_set(char const *hostname) {
- char *h = strdup(hostname);
- if (h == NULL)
- return;
+ char *h = strdup(hostname);
+ if (h == NULL)
+ return;
- free(hostname_g);
- hostname_g = h;
+ free(hostname_g);
+ hostname_g = h;
}
-