Header fixes:

* Do not include system headers in shared files (stdlib.h).
* Don't include lcd.h only once in each driver.
* Remove some unnecessary headers from driver (e.g. syslog.h)
* Include <poll.h> instead of <sys/poll.h>
* Spelling fixes.
This commit is contained in:
mmdolze
2011-03-28 18:17:58 +00:00
parent be5c6d014b
commit c9c3272eba
92 changed files with 105 additions and 255 deletions
+2 -3
View File
@@ -33,7 +33,6 @@
#include <errno.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <errno.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/un.h>
@@ -101,7 +100,7 @@ lircin_init (Driver *drvthis)
if (drvthis->config_get_string(drvthis->name, "lircrc", 0 , NULL) != NULL) {
strncpy(s, drvthis->config_get_string(drvthis->name, "lircrc", 0, ""), sizeof(s));
s[sizeof(s)-1] = '\0';
}
}
if (*s != '\0') {
p->lircrc = malloc(strlen(s) + 1);
@@ -185,7 +184,7 @@ lircin_close (Driver *drvthis)
if (p->lircin_fd >= 0) {
lirc_deinit ();
close (p->lircin_fd);
}
}
p->lircin_fd = -1;
free(p);