projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
collectd-tg: remove dead code
[collectd.git]
/
src
/
uuid.c
diff --git
a/src/uuid.c
b/src/uuid.c
index
2df6063
..
3836e52
100644
(file)
--- a/
src/uuid.c
+++ b/
src/uuid.c
@@
-28,7
+28,7
@@
#include "configfile.h"
#include "plugin.h"
#include "configfile.h"
#include "plugin.h"
-#if HAVE_LIBHAL
+#if HAVE_LIBHAL
_H
#include <libhal.h>
#endif
#include <libhal.h>
#endif
@@
-100,14
+100,14
@@
uuid_get_from_dmidecode(void)
if (!dmidecode) {
return NULL;
}
if (!dmidecode) {
return NULL;
}
-
+
uuid = uuid_parse_dmidecode(dmidecode);
pclose(dmidecode);
return uuid;
}
uuid = uuid_parse_dmidecode(dmidecode);
pclose(dmidecode);
return uuid;
}
-#if HAVE_LIBHAL
+#if HAVE_LIBHAL
_H
#define UUID_PATH "/org/freedesktop/Hal/devices/computer"
#define UUID_PROPERTY "smbios.system.uuid"
#define UUID_PATH "/org/freedesktop/Hal/devices/computer"
#define UUID_PROPERTY "smbios.system.uuid"
@@
-199,7
+199,7
@@
uuid_get_local(void)
return uuid;
}
return uuid;
}
-#if HAVE_LIBHAL
+#if HAVE_LIBHAL
_H
if ((uuid = uuid_get_from_hal()) != NULL) {
return uuid;
}
if ((uuid = uuid_get_from_hal()) != NULL) {
return uuid;
}