diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-02-20 00:56:08 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-02-20 00:56:08 +0200 |
commit | a4e1e5e8481565d97804c083752ee3eea0ebf87e (patch) | |
tree | 9ab107faae80a2ed592fc2f12547f95d262390c4 /mailbox/mutil.c | |
parent | 02ce501ad40d661045abc67f280bfd3d06bd81b7 (diff) | |
download | mailutils-a4e1e5e8481565d97804c083752ee3eea0ebf87e.tar.gz mailutils-a4e1e5e8481565d97804c083752ee3eea0ebf87e.tar.bz2 |
Remove leftover dependencies of libmailutils from gnulib
* bootstrap.conf (gnulib_extra_files): Remove.
* gnulib.modules (inttostr): Add module.
* include/mailutils/io.h: New file.
* include/mailutils/Makefile.am: Add io.h
* mailbox/inttostr.c, mailbox/inttostr.h: Remove
* mailbox/imaxtostr.c, mailbox/offtostr.c, mailbox/umaxtostr.c: Remove
* mailbox/intprops.h: Remove
* mailbox/asnprintf.c, mailbox/asprintf.c, mailbox/vasnprintf.c: New files.
* mailbox/Makefile.am: Update.
* mailbox/mu_umaxtostr.c: rename to lib/mu_umaxtostr.c
* mailbox/mu_umaxtostr.h: rename to lib/mu_umaxtostr.h
* lib/Makefile.am (libmuaux_la_SOURCES): Add mu_umaxtostr.[ch]
* libmu_auth/radius.c, libmu_cfg/common.c, libmu_scm/mu_port.c,
libproto/imap/folder.c, libproto/imap/mbox.c,
libproto/mbox/mbox.c, libproto/mh/mbox.c, libproto/pop/mbox.c,
mailbox/acl.c, mailbox/daemon.c, mailbox/mailer.c,
mailbox/message.c, mailbox/mutil.c, mailbox/stream.c: Use mu_strerror.
Avoid using mu_umaxtostr.
Diffstat (limited to 'mailbox/mutil.c')
-rw-r--r-- | mailbox/mutil.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/mailbox/mutil.c b/mailbox/mutil.c index 19d6b364c..31a5e946b 100644 --- a/mailbox/mutil.c +++ b/mailbox/mutil.c @@ -1,6 +1,6 @@ /* GNU Mailutils -- a suite of utilities for electronic mail Copyright (C) 1999, 2000, 2001, 2002, 2003, - 2005, 2006, 2007 Free Software Foundation, Inc. + 2005, 2006, 2007, 2009 Free Software Foundation, Inc. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -60,6 +60,7 @@ #include <mailutils/filter.h> #include <mailutils/sql.h> #include <mailutils/url.h> +#include <mailutils/io.h> #include <registrar0.h> @@ -611,7 +612,7 @@ mu_tempfile (const char *tmpdir, char **namep) if (fd == -1) { - mu_error (_("Cannot open temporary file: %s"), strerror (errno)); + mu_error (_("Cannot open temporary file: %s"), mu_strerror (errno)); free (filename); return -1; } @@ -1031,14 +1032,14 @@ mu_rfc2822_msg_id (int subpart, char **pval) { struct timeval tv; gettimeofday (&tv, NULL); - asprintf (&p, "<%s.%lu.%d@%s>", - date, - (unsigned long) getpid (), - subpart, - host); + mu_asprintf (&p, "<%s.%lu.%d@%s>", + date, + (unsigned long) getpid (), + subpart, + host); } else - asprintf (&p, "<%s.%lu@%s>", date, (unsigned long) getpid (), host); + mu_asprintf (&p, "<%s.%lu@%s>", date, (unsigned long) getpid (), host); free (host); *pval = p; return 0; |