diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-31 10:11:28 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-31 10:11:28 +0200 |
commit | 156d23df6d0414c254b9f6e7ce18052ac3e71658 (patch) | |
tree | cf68b89c3cff52b8882329e16f68e2fcd7d69885 /src/lib/eiotas_particle.c | |
parent | ea2f90e7d0e3a0bda886eeccb11b8d7dbbf0250e (diff) | |
download | edoors-156d23df6d0414c254b9f6e7ce18052ac3e71658.zip edoors-156d23df6d0414c254b9f6e7ce18052ac3e71658.tar.gz |
add const to some function parameters
Diffstat (limited to 'src/lib/eiotas_particle.c')
-rw-r--r-- | src/lib/eiotas_particle.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/eiotas_particle.c b/src/lib/eiotas_particle.c index 2284843..6597e5d 100644 --- a/src/lib/eiotas_particle.c +++ b/src/lib/eiotas_particle.c @@ -84,18 +84,18 @@ EAPI void eiotas_particle_init(Eiotas_Particle *particle, Eiotas_Iota *iota) particle->ts = time(NULL); } -EAPI void eiotas_particle_merge(Eiotas_Particle *particle, Eiotas_Particle *p) +EAPI void eiotas_particle_merge(Eiotas_Particle *particle, const Eiotas_Particle *p) { - particle->merged = eina_inlist_append(particle->merged, EINA_INLIST_GET(p)); + particle->merged = eina_inlist_append(particle->merged, EINA_INLIST_GET((Eiotas_Particle*)p)); } -EAPI void eiotas_particle_add_destinations(Eiotas_Particle *particle, char* destinations) +EAPI void eiotas_particle_add_destinations(Eiotas_Particle *particle, const char* destinations) { int n; char *dst, *sep; Eina_Stringshare *shared; - dst = destinations; + dst = (char*)destinations; for(; *dst;) { for(; *dst==' '; dst++) /* eat leading spaces */; sep = dst; |