mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-25 20:28:21 +00:00
Mass reindent, coding style and whitespace cleanups.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4736 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
02dc2e6679
commit
a82c6b0476
14 files changed
+249
-243
No files matched your search
+8
-8
@@ -25,16 +25,16 @@
|
||||
made between the current number of elements and the maximum number.
|
||||
You can only add elements at the end. Primitive, but very useful
|
||||
for internal use. */
|
||||
extern void sensors_malloc_array(void *list, int *num_el, int *max_el,
|
||||
int el_size);
|
||||
extern void sensors_free_array(void *list, int *num_el, int *max_el);
|
||||
extern void sensors_add_array_el(const void *el, void *list, int *num_el,
|
||||
int *max_el, int el_size);
|
||||
extern void sensors_add_array_els(const void *els, int nr_els, void *list,
|
||||
int *num_el, int *max_el, int el_size);
|
||||
void sensors_malloc_array(void *list, int *num_el, int *max_el,
|
||||
int el_size);
|
||||
void sensors_free_array(void *list, int *num_el, int *max_el);
|
||||
void sensors_add_array_el(const void *el, void *list, int *num_el,
|
||||
int *max_el, int el_size);
|
||||
void sensors_add_array_els(const void *els, int nr_els, void *list,
|
||||
int *num_el, int *max_el, int el_size);
|
||||
|
||||
/* Strip a string of all terminating spaces */
|
||||
extern void sensors_strip_of_spaces(char *name);
|
||||
void sensors_strip_of_spaces(char *name);
|
||||
|
||||
#define ARRAY_SIZE(arr) (int)(sizeof(arr) / sizeof((arr)[0]))
|
||||
|
||||
|
||||
Reference in new issue
Block a user