File: no-implicit-declarations2.patch

package info (click to toggle)
jabberd2 2.7.0-9
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,192 kB
  • sloc: ansic: 37,104; sh: 1,100; perl: 656; xml: 561; makefile: 511; python: 238; ruby: 145; sql: 55
file content (18 lines) | stat: -rw-r--r-- 547 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: add missing prototypes to fix -Werror=implicit-function-declaration
Author: Simon Josefsson <simon@josefsson.org>
Bug-Debian: https://bugs.debian.org/1067259
Last-Update: 2024-04-11
Forwarded: no

diff --git a/sx/websocket.c b/sx/websocket.c
index b08e135..e8dd5e1 100644
--- a/sx/websocket.c
+++ b/sx/websocket.c
@@ -25,6 +25,7 @@
 #include "sx.h"
 #include <stdarg.h>
 #include <string.h>
+char *strcasestr(const char *haystack, const char *needle);
 
 static const char websocket_guid[] = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11";