projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed void casts for ignored return values of function calls.
[mmh]
/
uip
/
sendsbr.c
diff --git
a/uip/sendsbr.c
b/uip/sendsbr.c
index
a8e0964
..
8d85559
100644
(file)
--- a/
uip/sendsbr.c
+++ b/
uip/sendsbr.c
@@
-175,12
+175,12
@@
sendsbr(char **vec, int vecp, char *drft, struct stat *st,
else
p++;
else
p++;
- (void)strcpy(body_file_name, p);
+ strcpy(body_file_name, p);
*p++ = ',';
*p++ = ',';
- (void)strcpy(p, body_file_name);
- (void)strcat(p, ".orig");
+ strcpy(p, body_file_name);
+ strcat(p, ".orig");
- (void)unlink(composition_file_name);
+ unlink(composition_file_name);
}
}
}
}
@@
-257,10
+257,10
@@
attach(char *attachment_header_field_name, char *draft_file_name,
** Make names for the temporary files.
*/
** Make names for the temporary files.
*/
- (void)strncpy(body_file_name,
+ strncpy(body_file_name,
m_mktemp(toabsdir(invo_name), NULL, NULL),
sizeof (body_file_name));
m_mktemp(toabsdir(invo_name), NULL, NULL),
sizeof (body_file_name));
- (void)strncpy(composition_file_name,
+ strncpy(composition_file_name,
m_mktemp(toabsdir(invo_name), NULL, NULL),
sizeof (composition_file_name));
m_mktemp(toabsdir(invo_name), NULL, NULL),
sizeof (composition_file_name));
@@
-286,9
+286,9
@@
attach(char *attachment_header_field_name, char *draft_file_name,
while (get_line() != EOF && *field != '\0' && *field != '-')
if (strncasecmp(field, attachment_header_field_name, length)
!= 0 || field[length] != ':')
while (get_line() != EOF && *field != '\0' && *field != '-')
if (strncasecmp(field, attachment_header_field_name, length)
!= 0 || field[length] != ':')
- (void)fprintf(composition_file, "%s\n", field);
+ fprintf(composition_file, "%s\n", field);
- (void)fputs("--------\n", composition_file);
+ fputs("--------\n", composition_file);
/*
** Copy the message body to a temporary file.
/*
** Copy the message body to a temporary file.
@@
-298,7
+298,7
@@
attach(char *attachment_header_field_name, char *draft_file_name,
while ((c = getc(draft_file)) != EOF)
putc(c, body_file);
while ((c = getc(draft_file)) != EOF)
putc(c, body_file);
- (void)fclose(body_file);
+ fclose(body_file);
}
/*
}
/*
@@
-328,14
+328,14
@@
attach(char *attachment_header_field_name, char *draft_file_name,
}
}
}
}
- (void)fclose(composition_file);
+ fclose(composition_file);
/*
** We're ready to roll! Run mhbuild on the composition file.
** Note that mhbuild is in the context as buildmimeproc.
*/
/*
** We're ready to roll! Run mhbuild on the composition file.
** Note that mhbuild is in the context as buildmimeproc.
*/
- (void)sprintf(buf, "%s %s", buildmimeproc, composition_file_name);
+ sprintf(buf, "%s %s", buildmimeproc, composition_file_name);
if (system(buf) != 0) {
clean_up_temporary_files();
if (system(buf) != 0) {
clean_up_temporary_files();
@@
-348,8
+348,8
@@
attach(char *attachment_header_field_name, char *draft_file_name,
static void
clean_up_temporary_files(void)
{
static void
clean_up_temporary_files(void)
{
- (void)unlink(body_file_name);
- (void)unlink(composition_file_name);
+ unlink(body_file_name);
+ unlink(composition_file_name);
return;
}
return;
}
@@
-370,7
+370,7
@@
get_line(void)
for (n = 0, p = field; (c = getc(draft_file)) != EOF; *p++ = c) {
if (c == '\n' && (c = getc(draft_file)) != ' ' && c != '\t') {
for (n = 0, p = field; (c = getc(draft_file)) != EOF; *p++ = c) {
if (c == '\n' && (c = getc(draft_file)) != ' ' && c != '\t') {
- (void)ungetc(c, draft_file);
+ ungetc(c, draft_file);
c = '\n';
break;
}
c = '\n';
break;
}
@@
-445,7
+445,7
@@
make_mime_composition_file_entry(char *file_name, int attachformat)
}
}
}
}
- (void)fclose(fp);
+ fclose(fp);
content_type = binary ?
"application/octet-stream" : "text/plain";
content_type = binary ?
"application/octet-stream" : "text/plain";
@@
-467,7
+467,7
@@
make_mime_composition_file_entry(char *file_name, int attachformat)
switch (attachformat) {
case 0:
/* Insert name, file mode, and Content-Id. */
switch (attachformat) {
case 0:
/* Insert name, file mode, and Content-Id. */
- (void)fprintf(composition_file,
+ fprintf(composition_file,
"#%s; name=\"%s\"; x-unix-mode=0%.3ho",
content_type, ((p = strrchr(file_name, '/'))
== (char *)0) ? file_name : p + 1,
"#%s; name=\"%s\"; x-unix-mode=0%.3ho",
content_type, ((p = strrchr(file_name, '/'))
== (char *)0) ? file_name : p + 1,
@@
-479,7
+479,7
@@
make_mime_composition_file_entry(char *file_name, int attachformat)
file_name);
}
file_name);
}
- (void)sprintf(cmd, "file '%s'", file_name);
+ sprintf(cmd, "file '%s'", file_name);
if ((fp = popen(cmd, "r")) != (FILE *)0 &&
fgets(cmd, sizeof (cmd), fp) != (char *)0) {
if ((fp = popen(cmd, "r")) != (FILE *)0 &&
fgets(cmd, sizeof (cmd), fp) != (char *)0) {
@@
-505,9
+505,9
@@
make_mime_composition_file_entry(char *file_name, int attachformat)
if (*p != '\0')
/* Insert Content-Description. */
if (*p != '\0')
/* Insert Content-Description. */
- (void)fprintf(composition_file, " [ %s ]", p);
+ fprintf(composition_file, " [ %s ]", p);
- (void)pclose(fp);
+ pclose(fp);
}
break;
}
break;
@@
-563,7
+563,7
@@
make_mime_composition_file_entry(char *file_name, int attachformat)
** Finish up with the file name.
*/
** Finish up with the file name.
*/
- (void)fprintf(composition_file, " %s\n", file_name);
+ fprintf(composition_file, " %s\n", file_name);
return;
}
return;
}