author | Florian Forster <octo@huhu.verplant.org> | |
Wed, 26 Dec 2007 14:34:18 +0000 (15:34 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Wed, 26 Dec 2007 14:34:18 +0000 (15:34 +0100) | ||
commit | e781b99dd81c7470e3b4055c4362c3841efb04a8 | |
tree | 72c68e56dbae229460a34c08f2e86f4b76309cfc | tree | snapshot |
parent | c19cd5976b40f03d21215882f827b4ed96d012e9 | commit | diff |
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.
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 | diff | blob | history |