summaryrefslogtreecommitdiffstats
path: root/src/hardware/utils.c
diff options
context:
space:
mode:
authorPeter Schiffer <pschiffe@redhat.com>2014-05-09 17:37:40 +0200
committerPeter Schiffer <pschiffe@redhat.com>2014-05-12 19:20:43 +0200
commit28aed3c2c360b84762f76b322e9fc80bd74c036b (patch)
tree880f68596cbaf7e0e020a6f116c3e789cd4fd60a /src/hardware/utils.c
parent87a03ac7ebff779351e9782d40e691221195f8e0 (diff)
downloadopenlmi-providers-28aed3c2c360b84762f76b322e9fc80bd74c036b.tar.gz
openlmi-providers-28aed3c2c360b84762f76b322e9fc80bd74c036b.tar.xz
openlmi-providers-28aed3c2c360b84762f76b322e9fc80bd74c036b.zip
Hardware: spring cleanup & refactor
* use openlmi common library where possible * get rid of LMI_Hardware.h file * some other cosmetic changes
Diffstat (limited to 'src/hardware/utils.c')
-rw-r--r--src/hardware/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hardware/utils.c b/src/hardware/utils.c
index 1fa6594..150d8e6 100644
--- a/src/hardware/utils.c
+++ b/src/hardware/utils.c
@@ -20,8 +20,8 @@
#include "utils.h"
-const ConfigEntry *provider_config_defaults = NULL;
const char *provider_name = "hardware";
+const ConfigEntry *provider_config_defaults = NULL;
short read_fp_to_2d_buffer(FILE *fp, char ***buffer, unsigned *buffer_size)
{
@@ -430,6 +430,6 @@ char *get_part_of_string_between(const char *str, const char *after, const char
end_pos[0] = '\0';
out = trim(temp, NULL);
- free (temp);
+ free(temp);
return out;
}