warp-vpn

point to point VPN implementation
git clone git://git.2f30.org/warp-vpn.git
Log | Files | Refs | README

commit 8ea6d7e3d19a6d3f52ec3e801f2485118c51f8fa
parent 9f22bc0a15fc6bb6f61dde681e06500edc266696
Author: sin <sin@2f30.org>
Date:   Sun, 10 Apr 2016 12:50:14 +0100

style fix

Diffstat:
stun.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/stun.c b/stun.c @@ -672,7 +672,7 @@ mapaead(const EVP_AEAD **aead, const char *name) }; for (cp = ciphers; cp->name; cp++) { - if (!strcmp(cp->name, name)) { + if (strcmp(cp->name, name) == 0) { *aead = (*cp->aeadfn)(); return; } @@ -735,9 +735,9 @@ main(int argc, char *argv[]) break; case 't': arg = EARGF(usage()); - if (!strcasecmp(arg, "tun")) + if (strcasecmp(arg, "tun") == 0) devtype = TUNDEV; - else if (!strcasecmp(arg, "tap")) + else if (strcasecmp(arg, "tap") == 0) devtype = TAPDEV; else usage();