(mu_get_user_email): Added comment.
Showing
1 changed file
with
8 additions
and
7 deletions
... | @@ -348,16 +348,16 @@ mu_set_user_email_domain (const char *domain) | ... | @@ -348,16 +348,16 @@ mu_set_user_email_domain (const char *domain) |
348 | { | 348 | { |
349 | char* d = NULL; | 349 | char* d = NULL; |
350 | 350 | ||
351 | if(!domain) | 351 | if (!domain) |
352 | return EINVAL; | 352 | return EINVAL; |
353 | 353 | ||
354 | d = strdup(domain); | 354 | d = strdup (domain); |
355 | 355 | ||
356 | if(!d) | 356 | if (!d) |
357 | return ENOMEM; | 357 | return ENOMEM; |
358 | 358 | ||
359 | if(mu_user_email_domain) | 359 | if (mu_user_email_domain) |
360 | free(mu_user_email_domain); | 360 | free (mu_user_email_domain); |
361 | 361 | ||
362 | mu_user_email_domain = d; | 362 | mu_user_email_domain = d; |
363 | 363 | ||
... | @@ -365,13 +365,13 @@ mu_set_user_email_domain (const char *domain) | ... | @@ -365,13 +365,13 @@ mu_set_user_email_domain (const char *domain) |
365 | } | 365 | } |
366 | 366 | ||
367 | int | 367 | int |
368 | mu_get_user_email_domain (const char** domain) | 368 | mu_get_user_email_domain (const char **domain) |
369 | { | 369 | { |
370 | int err = 0; | 370 | int err = 0; |
371 | 371 | ||
372 | if (!mu_user_email_domain) | 372 | if (!mu_user_email_domain) |
373 | { | 373 | { |
374 | if((err = mu_get_host_name(&mu_user_email_domain))) | 374 | if ((err = mu_get_host_name (&mu_user_email_domain))) |
375 | return err; | 375 | return err; |
376 | } | 376 | } |
377 | 377 | ||
... | @@ -380,6 +380,7 @@ mu_get_user_email_domain (const char** domain) | ... | @@ -380,6 +380,7 @@ mu_get_user_email_domain (const char** domain) |
380 | return 0; | 380 | return 0; |
381 | } | 381 | } |
382 | 382 | ||
383 | /* Note: allocates memory */ | ||
383 | char * | 384 | char * |
384 | mu_get_user_email (const char *name) | 385 | mu_get_user_email (const char *name) |
385 | { | 386 | { | ... | ... |
-
Please register or sign in to post a comment