fb2png: Update/Cleanup headers

* Include relevant headers for all used functions
* Add prototype for fb_dump() to fb.h since used in c-files
* Alphabetize includes

Change-Id: Ifdbaceadb12576b607b654835ae93bc88e2c3268
This commit is contained in:
Matt Mower
2017-01-11 15:31:00 -06:00
parent 18bdccb790
commit 908a27728c
4 changed files with 11 additions and 4 deletions
+1
View File
@@ -37,6 +37,7 @@ struct fb {
void* data;
};
void fb_dump(const struct fb* fb);
int fb_save_png(const struct fb *fb, const char *path);
#endif
+5 -3
View File
@@ -17,13 +17,15 @@
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include <errno.h>
#include <fcntl.h>
#include <linux/fb.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <linux/fb.h>
#include <errno.h>
#include <sys/types.h>
#include <unistd.h>
#include "log.h"
#include "fb2png.h"
+1
View File
@@ -21,6 +21,7 @@
#define __KYAN_LOG_H__
#include <errno.h>
#include <string.h>
#ifdef ANDROID_XXX
+4 -1
View File
@@ -17,9 +17,12 @@
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include <stdio.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "fb2png.h"
#ifdef ANDROID