author | Florian Forster <octo@collectd.org> | |
Sun, 17 Mar 2013 14:50:16 +0000 (15:50 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Sun, 17 Mar 2013 14:57:14 +0000 (15:57 +0100) | ||
commit | 5b7a7ff99f191d419cf19df001b81d123c93783f | |
tree | 0452a51109e8ad2e1b542669580805e1e20f2be0 | tree | snapshot |
parent | 1a02ec9a549ff7145db028f9ff2b3d9b2e9a6ef6 | commit | diff |
uuid plugin: Improve parsing of the dmidecode output.
The entire business of dividing by sizeof(char) only made the code
unreadable, because by specification sizeof(char) evaluates to 1. The
defines were expanded and the parsing is now less sensitive to
formatting changes in the dmidecode output. Module global variables have
been moved to the top.
Fixes Github issue #267 in the process.
The entire business of dividing by sizeof(char) only made the code
unreadable, because by specification sizeof(char) evaluates to 1. The
defines were expanded and the parsing is now less sensitive to
formatting changes in the dmidecode output. Module global variables have
been moved to the top.
Fixes Github issue #267 in the process.
src/common.c | diff | blob | history | |
src/common.h | diff | blob | history | |
src/uuid.c | diff | blob | history |