Commit: c69674dce2d721bd8472b26788dba091b50a04b7
Parent: ddea47b4cf4d7a0a7b7b5a8bda2f0712c2980eb0
Author: 0x766F6964
Date: Fri, 17 Jul 2020 14:30:36 -0600
add missing limits.h include
Diffstat:
24 files changed, 46 insertions(+), 7 deletions(-)
diff --git a/auth.c b/auth.c
@@ -1,3 +1,5 @@
+#include <limits.h>
+
#include "links.h"
static struct list_head auth = {&auth, &auth};
diff --git a/bfu.c b/bfu.c
@@ -3,6 +3,8 @@
* This file is a part of the Links program, released under GPL.
*/
+#include <limits.h>
+
#include "links.h"
static void menu_func(struct window *, struct links_event *, int);
diff --git a/cache.c b/cache.c
@@ -4,8 +4,10 @@
*/
#include <errno.h>
+#include <limits.h>
#include <search.h>
#include <unistd.h>
+
#include "links.h"
static struct list_head cache = {&cache, &cache};
diff --git a/charsets.c b/charsets.c
@@ -3,9 +3,11 @@
* This file is a part of the Links program, released under GPL.
*/
-#include "links.h"
+#include <limits.h>
#include <wctype.h>
+#include "links.h"
+
struct codepage_desc {
const char *name;
const char * const *aliases;
diff --git a/connect.c b/connect.c
@@ -3,6 +3,8 @@
* This file is a part of the Links program, released under GPL.
*/
+#include <limits.h>
+
#include "links.h"
static void connected(void *);
diff --git a/cookies.c b/cookies.c
@@ -4,6 +4,8 @@
* This file is a part of the Links program, released under GPL
*/
+#include <limits.h>
+
#include "links.h"
#define ACCEPT_NONE 0
diff --git a/default.c b/default.c
@@ -5,6 +5,7 @@
* Does the configuration file.
*/
+#include <limits.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
diff --git a/file.c b/file.c
@@ -3,10 +3,11 @@
* This file is a part of the Links program, released under GPL.
*/
-#include "links.h"
-
+#include <limits.h>
#include <sys/stat.h>
+#include "links.h"
+
static void setrwx(unsigned m, unsigned char *p)
{
if (m & S_IRUSR) p[0] = 'r';
diff --git a/html.c b/html.c
@@ -3,6 +3,7 @@
* This file is a part of the Links program, released under GPL.
*/
+#include <limits.h>
#include <string.h>
#include "links.h"
diff --git a/html_r.c b/html_r.c
@@ -3,6 +3,8 @@
* This file is a part of the Links program, released under GPL.
*/
+#include <limits.h>
+
#include "links.h"
struct f_data *init_formatted(struct document_options *opt)
diff --git a/html_tbl.c b/html_tbl.c
@@ -4,6 +4,8 @@
* This file is a part of the Links program, released under GPL.
*/
+#include <limits.h>
+
#include "links.h"
static void free_table_cache(void);
diff --git a/http.c b/http.c
@@ -4,6 +4,7 @@
* This file is a part of the Links program, released under GPL.
*/
+#include <limits.h>
#include <stdlib.h>
#include <string.h>
diff --git a/https.c b/https.c
@@ -17,6 +17,7 @@
* files in the program, then also delete it here.
*/
+#include <limits.h>
#include <openssl/ssl.h>
#include <openssl/x509v3.h>
#include <string.h>
diff --git a/kbd.c b/kbd.c
@@ -3,6 +3,8 @@
* This file is a part of the Links program, released under GPL.
*/
+#include <limits.h>
+
#include "links.h"
#define OUT_BUF_SIZE 10240
diff --git a/main.c b/main.c
@@ -5,6 +5,7 @@
*/
#include <errno.h>
+#include <limits.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/menu.c b/menu.c
@@ -3,8 +3,9 @@
* This file is a part of the Links program, released under GPL.
*/
-#include "links.h"
+#include <limits.h>
+#include "links.h"
static struct history file_history = { 0, { &file_history.items, &file_history.items } };
diff --git a/os_dep.c b/os_dep.c
@@ -3,10 +3,11 @@
* This file is a part of the Links program, released under GPL.
*/
-#include "links.h"
-
+#include <limits.h>
#include <sys/ioctl.h>
+#include "links.h"
+
int page_size = 4096;
int is_safe_in_shell(unsigned char c)
diff --git a/sched.c b/sched.c
@@ -4,6 +4,8 @@
* This file is a part of the Links program, released under GPL.
*/
+#include <limits.h>
+
#include "links.h"
static tcount connection_count = 0;
diff --git a/select.c b/select.c
@@ -4,6 +4,8 @@
* This file is a part of the Links program, released under GPL.
*/
+#include <limits.h>
+
#include "links.h"
#if defined(evtimer_set) && !defined(timeout_set)
diff --git a/session.c b/session.c
@@ -3,6 +3,8 @@
* This file is a part of the Links program, released under GPL.
*/
+#include <limits.h>
+
#include "links.h"
struct list_head downloads = {&downloads, &downloads};
diff --git a/string.c b/string.c
@@ -3,6 +3,8 @@
* This file is a part of the Links program, released under GPL.
*/
+#include <limits.h>
+
#include "links.h"
int snprint(unsigned char *s, int n, int num)
diff --git a/terminal.c b/terminal.c
@@ -3,6 +3,8 @@
* This file is a part of the Links program, released under GPL.
*/
+#include <limits.h>
+
#include "links.h"
static void in_term(void *);
diff --git a/types.c b/types.c
@@ -3,8 +3,9 @@
* This file is a part of the Links program, released under GPL.
*/
-#include "links.h"
+#include <limits.h>
+#include "links.h"
/*------------------------ ASSOCIATIONS -----------------------*/
diff --git a/view.c b/view.c
@@ -3,6 +3,8 @@
* This file is a part of the Links program, released under GPL.
*/
+#include <limits.h>
+
#include "links.h"
static void init_ctrl(struct form_control *, struct form_state *);