Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Another const.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 19 Feb 2020 08:49:54 +0000 (09:49 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 19 Feb 2020 08:55:58 +0000 (09:55 +0100)
include/simgrid/actor.h
src/s4u/s4u_Actor.cpp

index 858063f..63b544f 100644 (file)
@@ -41,7 +41,7 @@ XBT_PUBLIC int sg_actor_is_suspended(sg_actor_t actor);
 XBT_PUBLIC sg_actor_t sg_actor_restart(sg_actor_t actor);
 XBT_PUBLIC void sg_actor_set_auto_restart(sg_actor_t actor, int auto_restart);
 XBT_PUBLIC void sg_actor_daemonize(sg_actor_t actor);
-XBT_PUBLIC int sg_actor_is_daemon(sg_actor_t actor);
+XBT_PUBLIC int sg_actor_is_daemon(const_sg_actor_t actor);
 
 #ifndef DOXYGEN
 XBT_ATTRIB_DEPRECATED_v329("Please use sg_actor_set_host() instead") XBT_PUBLIC
index 70e3706..6ab12ac 100644 (file)
@@ -614,7 +614,7 @@ void sg_actor_daemonize(sg_actor_t actor)
 }
 
 /** Returns whether or not this actor has been daemonized or not */
-int sg_actor_is_daemon(sg_actor_t actor)
+int sg_actor_is_daemon(const_sg_actor_t actor)
 {
   return actor->is_daemon();
 }