File tree 4 files changed +8
-4
lines changed
4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 3
3
* .o.cmd
4
4
.tmp_versions
5
5
* .symvers
6
+ * .symvers.cmd
6
7
* .mod *
7
8
* .order
8
9
* .o
Original file line number Diff line number Diff line change @@ -32,14 +32,14 @@ clean:
32
32
# with "compat/string.h", which is just a wrapper to Linux kernel headers.
33
33
# TODO: rewrite with elegant scripts
34
34
http_parser.c :
35
- wget -q https://raw.githubusercontent.com/nodejs/http-parser/master /http_parser.c
35
+ wget -q https://raw.githubusercontent.com/nodejs/http-parser/main /http_parser.c
36
36
@sed -i ' s/#include <assert.h>/#include "compat\/assert.h"/' $@
37
37
@sed -i ' s/#include <stddef.h>/#include "compat\/stddef.h"/' $@
38
38
@sed -i ' s/#include <ctype.h>/#include "compat\/ctype.h"/' $@
39
39
@sed -i ' s/#include <string.h>/#include "compat\/string.h"/' $@
40
40
@sed -i ' s/#include <limits.h>/#include "compat\/limits.h"/' $@
41
41
@echo " File $@ was patched."
42
- wget -q https://raw.githubusercontent.com/nodejs/http-parser/master /http_parser.h
42
+ wget -q https://raw.githubusercontent.com/nodejs/http-parser/main /http_parser.h
43
43
@sed -i ' s/#include <stddef.h>/#include "compat\/stddef.h"/' http_parser.h
44
44
@sed -i ' s/#include <stdint.h>/#include "compat\/stdint.h"/' http_parser.h
45
45
@echo " File http_parser.h was patched."
Original file line number Diff line number Diff line change @@ -369,7 +369,7 @@ static void print_usage()
369
369
int main (int argc , char * argv [])
370
370
{
371
371
pthread_t useless_thread ;
372
- char * host = NULL ;
372
+ const char * host = NULL ;
373
373
char * node = NULL ;
374
374
char * port = "http" ;
375
375
struct sockaddr_in * ssin = (struct sockaddr_in * ) & sss ;
Original file line number Diff line number Diff line change 4
4
CPPCHECK_suppresses=" --suppress=missingIncludeSystem \
5
5
--suppress=unusedFunction:http_parser.c \
6
6
--suppress=duplicateBreak:http_parser.c \
7
- --suppress=shadowVariable:http_parser.c"
7
+ --suppress=shadowVariable:http_parser.c \
8
+ --suppress=unknownMacro:http_server.c \
9
+ --suppress=unusedStructMember:http_parser.h \
10
+ --suppress=unusedStructMember:http_server.h"
8
11
CPPCHECK_OPTS=" -I. --enable=all --error-exitcode=1 --force $CPPCHECK_suppresses "
9
12
10
13
RETURN=0
You can’t perform that action at this time.
0 commit comments