mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-29 21:08:19 +00:00
Drop sensors_strip_of_spaces. There's no rationale for stripping
trailing spaces of bus names and nothing else. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4756 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
3d15175ecd
commit
079ba26574
3 files changed
+1
-13
No files matched your search
+1
-2
@@ -298,8 +298,7 @@ bus_id: NAME
|
||||
;
|
||||
|
||||
adapter_name: NAME
|
||||
{ sensors_strip_of_spaces($1);
|
||||
$$ = $1; }
|
||||
{ $$ = $1; }
|
||||
;
|
||||
|
||||
function_name: NAME
|
||||
|
||||
@@ -83,11 +83,3 @@ void sensors_add_array_els(const void *els, int nr_els, void *list,
|
||||
memcpy(((char *)*my_list) + *num_el * el_size, els, el_size * nr_els);
|
||||
*num_el += nr_els;
|
||||
}
|
||||
|
||||
/* Strip a string of all terminating spaces */
|
||||
void sensors_strip_of_spaces(char *name)
|
||||
{
|
||||
int i;
|
||||
for (i = strlen(name) - 1; i >= 0 && name[i] == ' '; i--);
|
||||
name[i + 1] = '\0';
|
||||
}
|
||||
@@ -33,9 +33,6 @@ void sensors_add_array_el(const void *el, void *list, int *num_el,
|
||||
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 */
|
||||
void sensors_strip_of_spaces(char *name);
|
||||
|
||||
#define ARRAY_SIZE(arr) (int)(sizeof(arr) / sizeof((arr)[0]))
|
||||
|
||||
#endif /* LIB_SENSORS_GENERAL */
|
||||
Reference in new issue
Block a user