Fix for Bug 1961 - planetlab-tap-creator "variable set but not used"

This commit is contained in:
Alina Quereilhac
2014-08-06 11:00:06 +02:00
parent fe90df6c23
commit 10269d0a5b
2 changed files with 2 additions and 2 deletions

View File

@@ -37,6 +37,7 @@ Bugs fixed
- Bug 1951 - AODV does not update nexthop for 1-hop nodes
- Bug 1955 - The IPv4 identification field should be unique per (source, destination, protocol) tuple
- Bug 1960 - Wrong information on index range, about Node::GetDevice
- Bug 1961 - planetlab-tap-creator "variable set but not used"
Known issues
------------

View File

@@ -142,7 +142,6 @@ SetTunUp (const char *ip, const char *prefix, const char *if_name)
FILE *in;
FILE *out;
char errbuff[4096];
int nbytes;
memset(errbuff, 0, 4096);
@@ -166,7 +165,7 @@ SetTunUp (const char *ip, const char *prefix, const char *if_name)
// close pipe to indicate end parameter passing and flush the fifo
fclose (in);
nbytes = fread((void*)errbuff, 4096, 1, out);
fread((void*)errbuff, 4096, 1, out);
// the error buffer will not be empty if we read an error
ABORT_IF (strcmp(errbuff, "") != 0, errbuff, 0);