Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[s4u] Lowercase variable
authorGabriel Corona <gabriel.corona@loria.fr>
Mon, 6 Jun 2016 13:30:55 +0000 (15:30 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Mon, 6 Jun 2016 13:32:50 +0000 (15:32 +0200)
include/simgrid/s4u/actor.hpp
src/s4u/s4u_actor.cpp

index 3e2ce5b..e96a862 100644 (file)
@@ -75,7 +75,7 @@ public:
    */
   void kill();
 
-  static void kill(int PID);
+  static void kill(int pid);
   
   // Static methods on all actors:
 
index 6c2f29c..4a58590 100644 (file)
@@ -53,13 +53,13 @@ double s4u::Actor::getKillTime() {
   return simcall_process_get_kill_time(pimpl_);
 }
 
-void s4u::Actor::kill(int PID) {
-  msg_process_t process = SIMIX_process_from_PID(PID);
+void s4u::Actor::kill(int pid) {
+  msg_process_t process = SIMIX_process_from_PID(pid);
   if(process != NULL) {
     simcall_process_kill(process);
   } else {
     std::ostringstream oss;
-    oss << "kill: ("<< PID <<") - No such process" << std::endl;
+    oss << "kill: ("<< pid <<") - No such process" << std::endl;
     throw std::runtime_error(oss.str());
   }
 }