diff options
Diffstat (limited to 'src/examples/post_example.c')
-rw-r--r-- | src/examples/post_example.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/examples/post_example.c b/src/examples/post_example.c index 528b8678..173a1353 100644 --- a/src/examples/post_example.c +++ b/src/examples/post_example.c | |||
@@ -180,10 +180,10 @@ get_session (struct MHD_Connection *connection) | |||
180 | snprintf (ret->sid, | 180 | snprintf (ret->sid, |
181 | sizeof (ret->sid), | 181 | sizeof (ret->sid), |
182 | "%X%X%X%X", | 182 | "%X%X%X%X", |
183 | (unsigned int) random (), | 183 | (unsigned int) rand (), |
184 | (unsigned int) random (), | 184 | (unsigned int) rand (), |
185 | (unsigned int) random (), | 185 | (unsigned int) rand (), |
186 | (unsigned int) random ()); | 186 | (unsigned int) rand ()); |
187 | ret->rc++; | 187 | ret->rc++; |
188 | ret->start = time (NULL); | 188 | ret->start = time (NULL); |
189 | ret->next = sessions; | 189 | ret->next = sessions; |
@@ -319,7 +319,7 @@ fill_v1_form (const void *cls, | |||
319 | 319 | ||
320 | reply = malloc (strlen (form) + strlen (session->value_1) + 1); | 320 | reply = malloc (strlen (form) + strlen (session->value_1) + 1); |
321 | if (NULL == reply) | 321 | if (NULL == reply) |
322 | return NULL; | 322 | return MHD_NO; |
323 | snprintf (reply, | 323 | snprintf (reply, |
324 | strlen (form) + strlen (session->value_1) + 1, | 324 | strlen (form) + strlen (session->value_1) + 1, |
325 | form, | 325 | form, |
@@ -715,7 +715,7 @@ main (int argc, char *const *argv) | |||
715 | return 1; | 715 | return 1; |
716 | } | 716 | } |
717 | /* initialize PRNG */ | 717 | /* initialize PRNG */ |
718 | srandom ((unsigned int) time (NULL)); | 718 | srand ((unsigned int) time (NULL)); |
719 | d = MHD_start_daemon (MHD_USE_DEBUG, | 719 | d = MHD_start_daemon (MHD_USE_DEBUG, |
720 | atoi (argv[1]), | 720 | atoi (argv[1]), |
721 | NULL, NULL, | 721 | NULL, NULL, |