Skip to content

Commit 2d4a8f4

Browse files
committed
Include <stddef.h> everywhere ptrdiff_t is used
ptrdiff_t is defined in <stddef.h>
1 parent d5cec4d commit 2d4a8f4

8 files changed

+8
-0
lines changed

src/aclients.c

+1
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
#include <stdio.h>
7777
#include <assert.h>
7878
#include <ctype.h>
79+
#include <stddef.h>
7980
#include <string.h>
8081
#include <time.h>
8182

src/dwgpsd.c

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
#include <errno.h>
4646
#include <time.h>
4747
#include <math.h>
48+
#include <stddef.h>
4849

4950
#if __WIN32__
5051
#error Not for Windows

src/dwgpsnmea.c

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
#include <string.h>
5555
#include <errno.h>
5656
#include <time.h>
57+
#include <stddef.h>
5758

5859

5960
#include "textcolor.h"

src/kissnet.c

+1
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@
113113
#include <stdio.h>
114114
#include <assert.h>
115115
#include <string.h>
116+
#include <stddef.h>
116117

117118

118119
#include "tq.h"

src/kissutil.c

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
#include <stdio.h>
5757
#include <assert.h>
5858
#include <ctype.h>
59+
#include <stddef.h>
5960
#include <string.h>
6061
#include <getopt.h>
6162
#include <dirent.h>

src/recv.c

+1
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
#include <unistd.h>
8989
#include <stdlib.h>
9090
#include <string.h>
91+
#include <stddef.h>
9192
#include <sys/types.h>
9293
//#include <sys/stat.h>
9394
//#include <sys/ioctl.h>

src/server.c

+1
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@
145145
#include <string.h>
146146
#include <time.h>
147147
#include <ctype.h>
148+
#include <stddef.h>
148149

149150
#include "tq.h"
150151
#include "ax25_pad.h"

src/xmit.c

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
#include <string.h>
6161
#include <math.h>
6262
#include <errno.h>
63+
#include <stddef.h>
6364

6465
#include "direwolf.h"
6566
#include "ax25_pad.h"

0 commit comments

Comments
 (0)