diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-05-13 10:21:43 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-05-13 10:33:34 +0300 |
commit | de3fbe3e8d4dd2a89f7755906d76055784c437cc (patch) | |
tree | 65356dd7b5a9010499550c468e960c93515a7e15 /src/mail.c | |
parent | f569a6f2628b9ddef4dfb4424aff2dad644a8f19 (diff) | |
download | wydawca-de3fbe3e8d4dd2a89f7755906d76055784c437cc.tar.gz wydawca-de3fbe3e8d4dd2a89f7755906d76055784c437cc.tar.bz2 |
Drop gnulib.
* bootstrap: Rewrite.
* bootstrap.conf: Remove.
* configure.ac: Remove gl_EARLY/gl_INIT
* src/backup.c: New file.
* src/txtacc.c (txtacc_finish): Make sure a new entry is
appended only once to the list.
* (all sources): Use grecs memory allocation functions.
* src/wydawca.h" Include fnmatch.h and regex.h
(backup_type): New enum.
(simple_backup_suffix): New extern.
(find_backup_file_name): New proto.
* tests/bkupname.c: New file.
* tests/backup00.at: New file.
* tests/backup01.at: New file.
* tests/backup02.at: New file.
* tests/backup03.at: New file.
* tests/Makefile.am: Add new tests.
* tests/testsuite.at: Add new tests.
* grecs: Update.
Diffstat (limited to 'src/mail.c')
-rw-r--r-- | src/mail.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -293,3 +293,3 @@ mail_send_message (mu_address_t rcpt, const char *text, | |||
293 | mu_address_to_string (rcpt, NULL, 0, &size); | 293 | mu_address_to_string (rcpt, NULL, 0, &size); |
294 | buf = xmalloc (size + 1); | 294 | buf = grecs_malloc (size + 1); |
295 | mu_address_to_string (rcpt, buf, size + 1, NULL); | 295 | mu_address_to_string (rcpt, buf, size + 1, NULL); |
@@ -302,3 +302,3 @@ mail_send_message (mu_address_t rcpt, const char *text, | |||
302 | mu_address_to_string (from_address, NULL, 0, &size); | 302 | mu_address_to_string (from_address, NULL, 0, &size); |
303 | buf = xmalloc (size + 1); | 303 | buf = grecs_malloc (size + 1); |
304 | mu_address_to_string (from_address, buf, size + 1, NULL); | 304 | mu_address_to_string (from_address, buf, size + 1, NULL); |
@@ -436,3 +436,3 @@ mail_stats () | |||
436 | mu_address_to_string (admin_address, NULL, 0, &size); | 436 | mu_address_to_string (admin_address, NULL, 0, &size); |
437 | buf = xmalloc (size + 1); | 437 | buf = grecs_malloc (size + 1); |
438 | mu_address_to_string (admin_address, buf, size + 1, NULL); | 438 | mu_address_to_string (admin_address, buf, size + 1, NULL); |
@@ -446,3 +446,3 @@ mail_stats () | |||
446 | exp[0].kw = "date"; | 446 | exp[0].kw = "date"; |
447 | exp[0].value = exp[0].storage = xstrdup (ctime (&t)); | 447 | exp[0].value = exp[0].storage = grecs_strdup (ctime (&t)); |
448 | exp[0].value [strlen (exp[0].value) - 1] = 0; | 448 | exp[0].value [strlen (exp[0].value) - 1] = 0; |
@@ -600,3 +600,3 @@ do_notify (struct file_triplet *trp, enum notification_event ev, | |||
600 | mu_address_to_string (rcpt, NULL, 0, &size); | 600 | mu_address_to_string (rcpt, NULL, 0, &size); |
601 | buf = xmalloc (size + 1); | 601 | buf = grecs_malloc (size + 1); |
602 | mu_address_to_string (rcpt, buf, size + 1, NULL); | 602 | mu_address_to_string (rcpt, buf, size + 1, NULL); |
@@ -644,3 +644,3 @@ expand_email_admin (struct metadef *def, void *data) | |||
644 | size++; | 644 | size++; |
645 | def->storage = xmalloc (size); | 645 | def->storage = grecs_malloc (size); |
646 | mu_address_to_string (admin_address, def->storage, size, NULL); | 646 | mu_address_to_string (admin_address, def->storage, size, NULL); |
@@ -672,3 +672,3 @@ expand_email_owner (struct metadef *def, void *data) | |||
672 | size++; | 672 | size++; |
673 | def->storage = xmalloc (size); | 673 | def->storage = grecs_malloc (size); |
674 | mu_address_to_string (addr, def->storage, size, NULL); | 674 | mu_address_to_string (addr, def->storage, size, NULL); |