Skip to content

Commit 67f52d4

Browse files
committed
Revert "Add clang and CyaSSL to the build matrix"
1 parent 6f09777 commit 67f52d4

File tree

5 files changed

+10
-87
lines changed

5 files changed

+10
-87
lines changed

.travis.yml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,7 @@
1-
# Use newer, container based infrastructure
2-
# Does not allow use of apt-get, but enables
3-
# caching support
4-
sudo: false
51
language: c
62
compiler:
73
- gcc
8-
- clang
94
install:
105
- ./autogen.sh
116
script:
12-
- ./.travis_configure_wrapper.sh && make
13-
env:
14-
global:
15-
- CFLAGS="-Werror"
16-
matrix:
17-
- BUILD_TYPE=normal
18-
- CYASSL="3.3.2" BUILD_TYPE=cyassl
19-
cache:
20-
directories:
21-
- dependencies-src
22-
- dependencies-installed
7+
- ./configure && make

.travis_configure_wrapper.sh

Lines changed: 0 additions & 57 deletions
This file was deleted.

libhttpd/ip_acl.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,7 @@ char *cidr;
122122
int action;
123123
{
124124
httpAcl *cur;
125-
unsigned int addr;
126-
unsigned int len;
125+
int addr, len;
127126

128127
/*
129128
** Check the ACL info is reasonable
@@ -166,9 +165,7 @@ int
166165
httpdCheckAcl(httpd * server, request * r, httpAcl * acl)
167166
{
168167
httpAcl *cur;
169-
unsigned int addr;
170-
unsigned int len;
171-
int res, action;
168+
int addr, len, res, action;
172169

173170
action = HTTP_ACL_DENY;
174171
res = scanCidr(r->clientAddr, &addr, &len); /* Returns -1 on conversion failure. */

libhttpd/protocol.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,8 @@ int outbufsize;
256256
}
257257

258258
char
259-
_httpd_from_hex(char c)
259+
_httpd_from_hex(c)
260+
char c;
260261
{
261262
return c >= '0' && c <= '9' ? c - '0' : c >= 'A' && c <= 'F' ? c - 'A' + 10 : c - 'a' + 10; /* accept small letters just in case */
262263
}

src/conf.c

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -875,14 +875,11 @@ void parse_trusted_mac_list(const char *ptr) {
875875
config.trustedmaclist->next = NULL;
876876
} else {
877877
/* Advance to the last entry */
878-
p = config.trustedmaclist;
879-
while (p->next != NULL) {
880-
p = p->next;
881-
}
882-
p->next = safe_malloc(sizeof(t_trusted_mac));
883-
p = p->next;
884-
p->mac = safe_strdup(mac);
885-
p->next = NULL;
878+
for (p = config.trustedmaclist; p->next != NULL; p = p->next);
879+
p->next = safe_malloc(sizeof(t_trusted_mac));
880+
p = p->next;
881+
p->mac = safe_strdup(mac);
882+
p->next = NULL;
886883
}
887884
}
888885
}

0 commit comments

Comments
 (0)