summaryrefslogtreecommitdiff
path: root/net-analyzer/sancp/files/sancp-1.6.1-gcc6.patch
blob: e56d7114468ec7b6b4cc976b689fd2cd53b468d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- a/pcapFileHandle.h
+++ b/pcapFileHandle.h
@@ -16,7 +16,12 @@
 
 #define PCAP_HEADER_SIZE 24
 
-const char pcap_header[] = { 0xd4,0xc3,0xb2,0xa1,0x02,0x00,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x4e,0x00,0x00,0x01,0x00,0x00,0x00 };
+const char pcap_header[] = {
+	(char) 0xd4,(char) 0xc3,(char) 0xb2,(char) 0xa1,(char) 0x02,(char) 0x00,
+	(char) 0x04,(char) 0x00,(char) 0x00,(char) 0x00,(char) 0x00,(char) 0x00,
+	(char) 0x00,(char) 0x00,(char) 0x00,(char) 0x00,(char) 0x20,(char) 0x4e,
+	(char) 0x00,(char) 0x00,(char) 0x01,(char) 0x00,(char) 0x00,(char) 0x00
+};
 
 class pcapFileHandle : public fileHandle {
 
--- a/sancp.h
+++ b/sancp.h
@@ -223,7 +223,6 @@
 #define R_URG          0x20
 #define R_RES2         0x40
 #define R_RES1         0x80
-#define max(i,j)        (((i)>(j)) ? (i) : (j))
 #define SIZE_OF_CLASS_C	11
 
 struct t_ports {