aboutsummaryrefslogtreecommitdiff
path: root/tests/benchmarks
diff options
context:
space:
mode:
authorOliver Stöneberg <oliverst@online.de>2011-05-09 09:27:39 -0700
committerAndreas Schneider <asn@cryptomilk.org>2011-05-17 14:20:28 +0200
commite3311d03dba7ae281597cf5de235bcefda44457c (patch)
treeddc167d5c9493bf56f46d8729547bceda95d1990 /tests/benchmarks
parent7f0761885cb21c2013f7b0fc562187a1909a2048 (diff)
downloadlibssh-e3311d03dba7ae281597cf5de235bcefda44457c.tar.gz
libssh-e3311d03dba7ae281597cf5de235bcefda44457c.tar.xz
libssh-e3311d03dba7ae281597cf5de235bcefda44457c.zip
tests: Fixed some cppcheck warnings.
Diffstat (limited to 'tests/benchmarks')
-rw-r--r--tests/benchmarks/latency.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/benchmarks/latency.c b/tests/benchmarks/latency.c
index 9d68fd3f..849c39cd 100644
--- a/tests/benchmarks/latency.c
+++ b/tests/benchmarks/latency.c
@@ -75,12 +75,12 @@ int benchmarks_ping_latency (const char *host, float *average){
}
if(!found)
goto parseerror;
- fclose(fd);
+ pclose(fd);
return 0;
parseerror:
fprintf(stderr,"Parse error : couldn't locate average in %s",line);
- fclose(fd);
+ pclose(fd);
return -1;
}