diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-11-25 20:16:38 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-11-25 20:16:38 +0200 |
commit | 9df638667be69868851e0882eb172b1476ff962d (patch) | |
tree | 673948b65c1875beff1fb6085f558d805cbb5acc /libmu_scm | |
parent | bf613ed8c4661faa1e9c1de7f28a7e03c5652ec0 (diff) | |
download | mailutils-9df638667be69868851e0882eb172b1476ff962d.tar.gz mailutils-9df638667be69868851e0882eb172b1476ff962d.tar.bz2 |
Remove obsolete function.
* include/mailutils/body.h (mu_body_get_filename): Remove proto.
* include/mailutils/sys/body.h (_mu_body) <filename>: Remove.
* libmailutils/mailbox/body.c (mu_body_get_filename): Remove
obsolete function.
(_body_get_stream): Use mu_temp_file_stream_create.
* libmailutils/stream/temp_file_stream.c (mu_temp_file_stream_create):
Return EINVAL if flags is set, but hints is NULL.
* libmu_scm/mu_body.c (mu_scm_body_print): Don't use mu_body_get_filename.
Diffstat (limited to 'libmu_scm')
-rw-r--r-- | libmu_scm/mu_body.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/libmu_scm/mu_body.c b/libmu_scm/mu_body.c index 7f3d85c44..4d56f731a 100644 --- a/libmu_scm/mu_body.c +++ b/libmu_scm/mu_body.c @@ -55,18 +55,13 @@ static int mu_scm_body_print (SCM body_smob, SCM port, scm_print_state * pstate) { struct mu_body *mbp = (struct mu_body *) SCM_CDR (body_smob); - size_t b_size = 0, b_lines = 0, len = 0; + size_t b_size = 0, b_lines = 0; char buffer[512]; mu_body_size (mbp->body, &b_size); mu_body_lines (mbp->body, &b_lines); - buffer[0] = 0; - mu_body_get_filename (mbp->body, buffer, sizeof (buffer), &len); - - scm_puts ("#<body \"", port); - scm_puts (buffer, port); - scm_puts ("\" ", port); + scm_puts ("#<body ", port); snprintf (buffer, sizeof (buffer), "%3lu %-5lu", (unsigned long) b_lines, (unsigned long) b_size); scm_puts (buffer, port); |