X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Ftincd.c;h=c731e1d3c79fdeda0374c8d36790ca5efdd6f40e;hp=98a9a64faa39c624a6dec32e9ca4a06d711a9437;hb=985d19caf20058db3c764f0f6fbeafa8bcc59fcc;hpb=0965a24388b328ea7b5ea287f8629d4cb5ac9a90 diff --git a/src/tincd.c b/src/tincd.c index 98a9a64f..c731e1d3 100644 --- a/src/tincd.c +++ b/src/tincd.c @@ -418,7 +418,7 @@ static bool keygen(int bits) { } else fprintf(stderr, "Done.\n"); - snprintf(filename, sizeof filename, "%s/rsa_key.priv", confbase); + snprintf(filename, sizeof(filename), "%s/rsa_key.priv", confbase); f = ask_and_open(filename, "private RSA key"); if(!f) { @@ -438,10 +438,10 @@ static bool keygen(int bits) { char *name = get_name(); if(name) { - snprintf(filename, sizeof filename, "%s/hosts/%s", confbase, name); + snprintf(filename, sizeof(filename), "%s/hosts/%s", confbase, name); free(name); } else { - snprintf(filename, sizeof filename, "%s/rsa_key.pub", confbase); + snprintf(filename, sizeof(filename), "%s/rsa_key.pub", confbase); } f = ask_and_open(filename, "public RSA key"); @@ -543,7 +543,7 @@ static bool drop_privs() { "initgroups", strerror(errno)); return false; } -#ifndef __ANDROID__ +#ifndef ANDROID // Not supported in android NDK endgrent(); endpwent();