X-Git-Url: http://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Ftincctl.c;h=7cfc62e5f382bac67cdcfba5d93090dbf61e471c;hb=636200d1a2024982fe5b3062153daa72a8253015;hp=38bc4cf77b00e7b52e326c75270a6850d5899658;hpb=a9bdfb424e7a469d15156aa44bbe2fd0b8e28531;p=tinc diff --git a/src/tincctl.c b/src/tincctl.c index 38bc4cf7..7cfc62e5 100644 --- a/src/tincctl.c +++ b/src/tincctl.c @@ -292,7 +292,7 @@ static void make_names(void) { #ifdef HAVE_MINGW HKEY key; char installdir[1024] = ""; - long len = sizeof(installdir); + long len = sizeof installdir; #endif if(netname) @@ -360,7 +360,7 @@ static int send_ctl_request(int fd, enum request_type type, tinc_ctl_request_t req; int rv; struct iovec vector[2] = { - {&req, sizeof(req)}, + {&req, sizeof req}, {(void*) outdata, outdatalen} }; void *indata; @@ -611,7 +611,7 @@ int main(int argc, char *argv[], char *envp[]) { } debuglevel = atoi(argv[optind+1]); return send_ctl_request_cooked(fd, REQ_SET_DEBUG, &debuglevel, - sizeof(debuglevel)) != -1; + sizeof debuglevel) != -1; } if(!strcasecmp(argv[optind], "retry")) {