Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
please sonar by removing useless asignments and return statements
[simgrid.git] / src / mc / Client.hpp
index 36a6578..6de722c 100644 (file)
@@ -33,18 +33,18 @@ private:
   static std::unique_ptr<Client> client_;
 public:
   Client();
-  Client(int fd) : active_(true), channel_(fd) {}
+  explicit Client(int fd) : active_(true), channel_(fd) {}
   void handleMessages();
   Channel const& getChannel() const { return channel_; }
   Channel& getChannel() { return channel_; }
-  void mainLoop(void);
+  void mainLoop();
   void reportAssertionFailure(const char* description = nullptr);
   void ignoreMemory(void* addr, std::size_t size);
   void ignoreHeap(void* addr, std::size_t size);
   void unignoreHeap(void* addr, std::size_t size);
   void declareSymbol(const char *name, int* value);
 #if HAVE_UCONTEXT_H
-  void declareStack(void *stack, size_t size, smx_process_t process, ucontext_t* context);
+  void declareStack(void *stack, size_t size, smx_actor_t process, ucontext_t* context);
 #endif
 
   // Singleton :/