summaryrefslogtreecommitdiff
path: root/lib/general.h
Commit message (Collapse)AuthorAgeFilesLines
* Make include guards consistent in libsensorsDavid Frey2017-04-141-3/+3
| | | | | Signed-off-by: David Frey <dpfrey@gmail.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
* Change libsensors license from GPL to LGPL.Jean Delvare2010-07-011-6/+6
| | | | git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5844 7894878c-1315-0410-8ee3-d5d059ff63e0
* Patch from Aurelien Jarno:Jean Delvare2008-03-261-1/+2
| | | | | | | | I have just noticed that the FSF address is the old one in all files except COPYING. Please find a patch below to fix that. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5163 7894878c-1315-0410-8ee3-d5d059ff63e0
* Drop sensors_strip_of_spaces. There's no rationale for strippingJean Delvare2007-09-051-3/+0
| | | | | | | 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
* Mass reindent, coding style and whitespace cleanups.Jean Delvare2007-08-311-8/+8
| | | | git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4736 7894878c-1315-0410-8ee3-d5d059ff63e0
* Add some more warning flags, and fix these warnings.Jean Delvare2007-07-031-0/+2
| | | | git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4545 7894878c-1315-0410-8ee3-d5d059ff63e0
* Patch by Philipp Thomas <pth@suse.de>:Mark M. Hoffman2004-03-081-4/+4
| | | | | | | | | | | | | | | | | | | | > Current gcc versions warn when type punning is used, as this breaks the > strict aliasing analysis gcc 3.3 does by default. When checking the causes > for these warnings I discovered that sensors_malloc_array, > sensors_free_array, sensors_add_array_el and sensors_add_array_els in > lib/general.c all take a 'void **' for the list. This is plain wrong as > the C standard only allow 'char *' and 'void *' to alias any other type, so > if these functions should take a generic pointer, it *must* be a 'void *' > that's internally cast to a 'void **'. > > The attached patch does this and adapts all places where these functions are > called. Note that when done correctly, no cast what-so-ever in the calling > code is needed. > > The patch is against current lm_sensors2 cvs version. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2345 7894878c-1315-0410-8ee3-d5d059ff63e0
* Adrian's copyright patch appliedFrodo Looijaard1999-02-081-1/+1
| | | | git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@207 7894878c-1315-0410-8ee3-d5d059ff63e0
* More libary stuffFrodo Looijaard1998-12-221-0/+3
| | | | | | | The bus translation functions. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@101 7894878c-1315-0410-8ee3-d5d059ff63e0
* The first bunch of library filesFrodo Looijaard1998-12-191-0/+36
These are the relatively well-tested files. They allow you to parse a configuration file, and to build an internal abstract syntax tree. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@91 7894878c-1315-0410-8ee3-d5d059ff63e0