#include <kstat.h>
#endif
-void hostname_set(char const *hostname) {
- char *h = strdup(hostname);
- if (h == NULL)
- return;
-
- free(hostname_g);
- hostname_g = h;
-}
-
/*
* Global variables
*/
kstat_ctl_t *kc;
#endif
+void hostname_set(char const *hostname) {
+ char *h = strdup(hostname);
+ if (h == NULL)
+ return;
+
+ free(hostname_g);
+ hostname_g = h;
+}
+