Fix for Bug 1961 - planetlab-tap-creator "variable set but not used"
authorAlina Quereilhac <alina.quereilhac@inria.fr>
Wed, 06 Aug 2014 11:00:06 +0200
changeset 10854 e6e590450831
parent 10853 43b9107a69a3
child 10855 7ef081ddfc7f
Fix for Bug 1961 - planetlab-tap-creator "variable set but not used"
RELEASE_NOTES
src/fd-net-device/helper/planetlab-tap-creator.cc
--- a/RELEASE_NOTES	Sun Aug 03 15:09:19 2014 +0200
+++ b/RELEASE_NOTES	Wed Aug 06 11:00:06 2014 +0200
@@ -37,6 +37,7 @@
 - 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
 ------------
--- a/src/fd-net-device/helper/planetlab-tap-creator.cc	Sun Aug 03 15:09:19 2014 +0200
+++ b/src/fd-net-device/helper/planetlab-tap-creator.cc	Wed Aug 06 11:00:06 2014 +0200
@@ -142,7 +142,6 @@
   FILE *in;
   FILE *out;
   char errbuff[4096];
-  int nbytes;
 
   memset(errbuff, 0, 4096);
 
@@ -166,7 +165,7 @@
   // 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);