mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-24 20:21:43 +00:00
The sensors library relied on one structure having an identical layout in
memory as part of another structure. This rather large patch fixes that by making the smaller piece an explicit member of the larger. I brought this patch into sync with the latest SVN, and tested it by comparing objects files from the tree pre- and post- patch. The remaining 99% of the credit goes to Bob Schlärmann <bob2@dsv.nl> for creating the original patch... thanks Bob! * Bob Schlärmann <bob2@dsv.nl> [2006-12-24 18:29:39 +0100]: > The following patch changes all of the lib/chips.c entries and any function > that uses sensors_chip_feature. Most of the conversion was done through a > perl script, so if you don't agree with the syntax it'll be easy to change. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4287 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
b162d642a9
commit
6968eb16fe
5 files changed
+5451
-5646
No files matched your search
+1
-1
@@ -308,7 +308,7 @@ static const struct match matches[] = {
|
||||
static int getsysname(const sensors_chip_feature *feature, char *sysname,
|
||||
int *sysmag, char *altsysname)
|
||||
{
|
||||
const char * name = feature->name;
|
||||
const char * name = feature->data.name;
|
||||
char last;
|
||||
char check; /* used to verify end of string */
|
||||
int num;
|
||||
|
||||
Reference in new issue
Block a user