aboutsummaryrefslogtreecommitdiff
path: root/src/psycutil/psyc_env.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/psycutil/psyc_env.c')
-rw-r--r--src/psycutil/psyc_env.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/psycutil/psyc_env.c b/src/psycutil/psyc_env.c
index b4861a25d..0d8a4ec69 100644
--- a/src/psycutil/psyc_env.c
+++ b/src/psycutil/psyc_env.c
@@ -66,8 +66,8 @@ GNUNET_PSYC_env_create ()
66 */ 66 */
67void 67void
68GNUNET_PSYC_env_add (struct GNUNET_PSYC_Environment *env, 68GNUNET_PSYC_env_add (struct GNUNET_PSYC_Environment *env,
69 enum GNUNET_PSYC_Operator oper, const char *name, 69 enum GNUNET_PSYC_Operator oper, const char *name,
70 const void *value, size_t value_size) 70 const void *value, size_t value_size)
71{ 71{
72 struct GNUNET_PSYC_Modifier *mod = GNUNET_new (struct GNUNET_PSYC_Modifier); 72 struct GNUNET_PSYC_Modifier *mod = GNUNET_new (struct GNUNET_PSYC_Modifier);
73 mod->oper = oper; 73 mod->oper = oper;
@@ -104,7 +104,7 @@ GNUNET_PSYC_env_tail (const struct GNUNET_PSYC_Environment *env)
104 */ 104 */
105void 105void
106GNUNET_PSYC_env_remove (struct GNUNET_PSYC_Environment *env, 106GNUNET_PSYC_env_remove (struct GNUNET_PSYC_Environment *env,
107 struct GNUNET_PSYC_Modifier *mod) 107 struct GNUNET_PSYC_Modifier *mod)
108{ 108{
109 GNUNET_CONTAINER_DLL_remove (env->mod_head, env->mod_tail, mod); 109 GNUNET_CONTAINER_DLL_remove (env->mod_head, env->mod_tail, mod);
110} 110}
@@ -123,8 +123,8 @@ GNUNET_PSYC_env_remove (struct GNUNET_PSYC_Environment *env,
123 */ 123 */
124int 124int
125GNUNET_PSYC_env_shift (struct GNUNET_PSYC_Environment *env, 125GNUNET_PSYC_env_shift (struct GNUNET_PSYC_Environment *env,
126 enum GNUNET_PSYC_Operator *oper, const char **name, 126 enum GNUNET_PSYC_Operator *oper, const char **name,
127 const void **value, size_t *value_size) 127 const void **value, size_t *value_size)
128{ 128{
129 if (NULL == env->mod_head) 129 if (NULL == env->mod_head)
130 return GNUNET_NO; 130 return GNUNET_NO;
@@ -152,7 +152,7 @@ GNUNET_PSYC_env_shift (struct GNUNET_PSYC_Environment *env,
152 */ 152 */
153void 153void
154GNUNET_PSYC_env_iterate (const struct GNUNET_PSYC_Environment *env, 154GNUNET_PSYC_env_iterate (const struct GNUNET_PSYC_Environment *env,
155 GNUNET_PSYC_Iterator it, void *it_cls) 155 GNUNET_PSYC_Iterator it, void *it_cls)
156{ 156{
157 struct GNUNET_PSYC_Modifier *mod; 157 struct GNUNET_PSYC_Modifier *mod;
158 for (mod = env->mod_head; NULL != mod; mod = mod->next) 158 for (mod = env->mod_head; NULL != mod; mod = mod->next)