aboutsummaryrefslogtreecommitdiff
path: root/src/gdb_packet.c
diff options
context:
space:
mode:
authorGareth McMullin2015-03-01 22:16:04 -0800
committerGareth McMullin2015-03-01 22:16:04 -0800
commit4d4813de87721528fc9a06174dd1da5c245ae2f3 (patch)
tree298266ed212f574b51d21d5b3fa18d37a4388907 /src/gdb_packet.c
parent9d80641261cee52fdf1976caa41d4fd24c392c9a (diff)
Clean up includes everywhere.
All source files include general.h first and before anything else. This inlcludes platform.h and platform_support.h No header file needs to include to include any of these, but should include any others needed for it's own declarations.
Diffstat (limited to 'src/gdb_packet.c')
-rw-r--r--src/gdb_packet.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/gdb_packet.c b/src/gdb_packet.c
index d43be42..4dc934f 100644
--- a/src/gdb_packet.c
+++ b/src/gdb_packet.c
@@ -22,18 +22,13 @@
* reception and transmission as well as some convenience functions.
*/
-#define _GNU_SOURCE
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include <stdarg.h>
-
#include "general.h"
#include "gdb_if.h"
#include "gdb_packet.h"
#include "hex_utils.h"
+#include <stdarg.h>
+
int
gdb_getpacket(unsigned char *packet, int size)
{