sensors plugin: While I was at it I reorganized the code a little so it's easier...
authorFlorian Forster <octo@huhu.verplant.org>
Wed, 26 Dec 2007 14:34:18 +0000 (15:34 +0100)
committerFlorian Forster <octo@huhu.verplant.org>
Wed, 26 Dec 2007 14:34:18 +0000 (15:34 +0100)
commite781b99dd81c7470e3b4055c4362c3841efb04a8
tree72c68e56dbae229460a34c08f2e86f4b76309cfc
parentc19cd5976b40f03d21215882f827b4ed96d012e9
sensors plugin: While I was at it I reorganized the code a little so it's easier to read.

For instance I moved the name to type conversion out of the main loop and into
a separate function, likewise the chip to string representation conversion. The
`submit' function is now very careful that all strings are null terminated and
that no buffer overflow may occur.
src/sensors.c