summaryrefslogtreecommitdiffstats
path: root/src/hardware/utils.h
diff options
context:
space:
mode:
authorPeter Schiffer <pschiffe@redhat.com>2013-04-08 20:25:59 +0200
committerPeter Schiffer <pschiffe@redhat.com>2013-04-08 20:25:59 +0200
commit699a49933d2b2690888f719a447682d85c9942b0 (patch)
treeabaf80cecec848db033318cfe84bac08b884dbdc /src/hardware/utils.h
parent9b77270eebd073ab4060ac84e4b40fc0652dff07 (diff)
downloadopenlmi-providers-699a49933d2b2690888f719a447682d85c9942b0.tar.gz
openlmi-providers-699a49933d2b2690888f719a447682d85c9942b0.tar.xz
openlmi-providers-699a49933d2b2690888f719a447682d85c9942b0.zip
Hardware: Code clean up
* Got rid of asprintf() where suitable (used static memory instead) * Removed if conditional before free() * Replaced more hard coded numbers with LMI constants
Diffstat (limited to 'src/hardware/utils.h')
-rw-r--r--src/hardware/utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/hardware/utils.h b/src/hardware/utils.h
index 9f5686f..933c042 100644
--- a/src/hardware/utils.h
+++ b/src/hardware/utils.h
@@ -27,6 +27,8 @@
#include <errno.h>
#include "globals.h"
+#define LONG_INT_LEN 21 /* 64 bit unsigned int can has 20 decimals + \0 */
+
#define WHITESPACES " \f\n\r\t\v"