Skip to content

Commit

Permalink
Fix typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
MisterDA committed May 2, 2020
1 parent 87af395 commit 4178a22
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ HAVE_MBEDTLS = yes
ifeq ($(HAVE_MBEDTLS), yes)
DTLS_SRCS = dtls.c
DTLS_OBJS = dtls.o
DTLS_CFLAGS = -Imbedtls_build/include
DTLS_LDFLAGS = -Lmbedtls_build/library
DTLS_CFLAGS =
DTLS_LDFLAGS =
DTLS_LDLIBS = -lmbedtls -lmbedx509 -lmbedcrypto
DTLS_DEFINES = -DHAVE_MBEDTLS -DUSE_MBEDTLS_TEST_CERTS
endif
Expand Down
2 changes: 1 addition & 1 deletion babeld.c
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ main(int argc, char **argv)
dtls->timer_status = 2;
printf("DTLS: timer 2 expired\n");
rc = dtls_handshake(neigh);
if (rc) {
if(rc) {
fprintf(stderr, "DTLS: timer handshake failed?\n");
}
} else if(timeval_compare(&now, &dtls->int_time) >= 0) {
Expand Down
2 changes: 1 addition & 1 deletion configuration.c
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ parse_anonymous_ifconf(int c, gnc_t gnc, void *closure,
goto error;
if_conf->unicast = v;
#ifdef HAVE_MBEDTLS
} else if (strcmp(token, "dtls") == 0) {
} else if(strcmp(token, "dtls") == 0) {
int v;
c = getbool(c, &v, gnc, closure);
if(c < -1)
Expand Down
6 changes: 3 additions & 3 deletions dtls.c
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ dtls_parse_packet(const struct sockaddr_in6 *from, struct interface *ifp,
} else {
printf("Trying handshake in parser\n");
rc = dtls_handshake(neigh);
if (rc) {
if(rc) {
printf("Parser handshake failed?\n");
}
}
Expand All @@ -505,7 +505,7 @@ dtls_handshake(struct neighbour *neigh)
* nothing and see what happens. */
print_mbedtls_err("mbedtls_ssl_handshake WRITE|ASYNC", rc);
return rc;
} else if (rc == MBEDTLS_ERR_SSL_WANT_READ) {
} else if(rc == MBEDTLS_ERR_SSL_WANT_READ) {
print_mbedtls_err("mbedtls_ssl_handshake READ", rc);
return 0;
} else if(rc == MBEDTLS_ERR_SSL_HELLO_VERIFY_REQUIRED) {
Expand Down Expand Up @@ -554,7 +554,7 @@ dtls_send(const void *buf1, int buflen1, const void *buf2, int buflen2,
print_mbedtls_err("dtls_send mbedtls_ssl_write", rc);
/* FIXME: what do we do? */
}
} else if (rc < len) {
} else if(rc < len) {
buf += rc;
len -= rc;
goto partial_write;
Expand Down
2 changes: 1 addition & 1 deletion net.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ babel_recv(int s, void *buf, int buflen, struct sockaddr *sin, int slen,
if(rc < 0)
return rc;

if (is_unicast != NULL) {
if(is_unicast != NULL) {
*is_unicast = -1;
for(cmsg = CMSG_FIRSTHDR(&msg);
cmsg != NULL;
Expand Down

0 comments on commit 4178a22

Please sign in to comment.