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
+1
View File
@@ -19,6 +19,7 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <stdlib.h>
#include "lcd_link.h"
#include "vc_link.h"
+1
View File
@@ -20,6 +20,7 @@
#include <signal.h>
#include <fcntl.h>
#include <errno.h>
#include <stdlib.h>
#include "getopt.h"
+2 -1
View File
@@ -19,6 +19,7 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <stdlib.h>
#include "lcdvc.h"
#include "vc_link.h"
@@ -79,7 +80,7 @@ int read_vcdata(void)
if (vc_buf == NULL) {
report(RPT_ERR, "malloc failure: %s", strerror(errno));
return -1;
}
}
memset(vc_buf, ' ', vc_width * vc_height);
}
}