diff options
author | Gabor X Toth <*@tg-x.net> | 2016-02-21 13:41:26 +0000 |
---|---|---|
committer | Gabor X Toth <*@tg-x.net> | 2016-02-21 13:41:26 +0000 |
commit | 9b8f3b8f3553b5b2f67cd14ad9a4f431f98d505d (patch) | |
tree | 46b45f3af6e3f5af3703a6c95ffc53bf871c4775 /src | |
parent | 7ba7524b484e4c3efebb075ad53b96a9b64efa0a (diff) | |
download | gnunet-9b8f3b8f3553b5b2f67cd14ad9a4f431f98d505d.tar.gz gnunet-9b8f3b8f3553b5b2f67cd14ad9a4f431f98d505d.zip |
indent
Diffstat (limited to 'src')
-rw-r--r-- | src/include/gnunet_psyc_env.h | 20 | ||||
-rw-r--r-- | src/psycutil/psyc_env.c | 12 |
2 files changed, 16 insertions, 16 deletions
diff --git a/src/include/gnunet_psyc_env.h b/src/include/gnunet_psyc_env.h index 86562900c..0b319e6ef 100644 --- a/src/include/gnunet_psyc_env.h +++ b/src/include/gnunet_psyc_env.h | |||
@@ -163,8 +163,8 @@ GNUNET_PSYC_env_create (); | |||
163 | */ | 163 | */ |
164 | void | 164 | void |
165 | GNUNET_PSYC_env_add (struct GNUNET_PSYC_Environment *env, | 165 | GNUNET_PSYC_env_add (struct GNUNET_PSYC_Environment *env, |
166 | enum GNUNET_PSYC_Operator oper, const char *name, | 166 | enum GNUNET_PSYC_Operator oper, const char *name, |
167 | const void *value, size_t value_size); | 167 | const void *value, size_t value_size); |
168 | 168 | ||
169 | 169 | ||
170 | /** | 170 | /** |
@@ -187,7 +187,7 @@ GNUNET_PSYC_env_tail (const struct GNUNET_PSYC_Environment *env); | |||
187 | */ | 187 | */ |
188 | void | 188 | void |
189 | GNUNET_PSYC_env_remove (struct GNUNET_PSYC_Environment *env, | 189 | GNUNET_PSYC_env_remove (struct GNUNET_PSYC_Environment *env, |
190 | struct GNUNET_PSYC_Modifier *mod); | 190 | struct GNUNET_PSYC_Modifier *mod); |
191 | 191 | ||
192 | 192 | ||
193 | /** | 193 | /** |
@@ -195,8 +195,8 @@ GNUNET_PSYC_env_remove (struct GNUNET_PSYC_Environment *env, | |||
195 | */ | 195 | */ |
196 | int | 196 | int |
197 | GNUNET_PSYC_env_shift (struct GNUNET_PSYC_Environment *env, | 197 | GNUNET_PSYC_env_shift (struct GNUNET_PSYC_Environment *env, |
198 | enum GNUNET_PSYC_Operator *oper, const char **name, | 198 | enum GNUNET_PSYC_Operator *oper, const char **name, |
199 | const void **value, size_t *value_size); | 199 | const void **value, size_t *value_size); |
200 | 200 | ||
201 | 201 | ||
202 | /** | 202 | /** |
@@ -210,8 +210,8 @@ GNUNET_PSYC_env_shift (struct GNUNET_PSYC_Environment *env, | |||
210 | */ | 210 | */ |
211 | typedef int | 211 | typedef int |
212 | (*GNUNET_PSYC_Iterator) (void *cls, enum GNUNET_PSYC_Operator oper, | 212 | (*GNUNET_PSYC_Iterator) (void *cls, enum GNUNET_PSYC_Operator oper, |
213 | const char *name, const char *value, | 213 | const char *name, const char *value, |
214 | uint32_t value_size); | 214 | uint32_t value_size); |
215 | 215 | ||
216 | 216 | ||
217 | /** | 217 | /** |
@@ -223,7 +223,7 @@ typedef int | |||
223 | */ | 223 | */ |
224 | void | 224 | void |
225 | GNUNET_PSYC_env_iterate (const struct GNUNET_PSYC_Environment *env, | 225 | GNUNET_PSYC_env_iterate (const struct GNUNET_PSYC_Environment *env, |
226 | GNUNET_PSYC_Iterator it, void *it_cls); | 226 | GNUNET_PSYC_Iterator it, void *it_cls); |
227 | 227 | ||
228 | 228 | ||
229 | /** | 229 | /** |
@@ -273,8 +273,8 @@ GNUNET_PSYC_var_get_type (char *name); | |||
273 | */ | 273 | */ |
274 | int | 274 | int |
275 | GNUNET_PSYC_operation (char *name, void *current_value, size_t current_value_size, | 275 | GNUNET_PSYC_operation (char *name, void *current_value, size_t current_value_size, |
276 | enum GNUNET_PSYC_Operator oper, void *args, size_t args_size, | 276 | enum GNUNET_PSYC_Operator oper, void *args, size_t args_size, |
277 | void **return_value, size_t *return_value_size); | 277 | void **return_value, size_t *return_value_size); |
278 | 278 | ||
279 | 279 | ||
280 | /** | 280 | /** |
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 | */ |
67 | void | 67 | void |
68 | GNUNET_PSYC_env_add (struct GNUNET_PSYC_Environment *env, | 68 | GNUNET_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 | */ |
105 | void | 105 | void |
106 | GNUNET_PSYC_env_remove (struct GNUNET_PSYC_Environment *env, | 106 | GNUNET_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 | */ |
124 | int | 124 | int |
125 | GNUNET_PSYC_env_shift (struct GNUNET_PSYC_Environment *env, | 125 | GNUNET_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 | */ |
153 | void | 153 | void |
154 | GNUNET_PSYC_env_iterate (const struct GNUNET_PSYC_Environment *env, | 154 | GNUNET_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) |