Fix for Bug 1961 - planetlab-tap-creator "variable set but not used"
This commit is contained in:
@@ -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
|
||||
------------
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user