git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added lots of "(void)" casts to standard function calls.
[exim.git]
/
src
/
src
/
expand.c
diff --git
a/src/src/expand.c
b/src/src/expand.c
index ca340bb1b44bdb128e75e6dc702f6dc5d03cdd78..632b1d933e4d437ab4a7748eb07a0f5e9ccedb3b 100644
(file)
--- a/
src/src/expand.c
+++ b/
src/src/expand.c
@@
-1,4
+1,4
@@
-/* $Cambridge: exim/src/src/expand.c,v 1.3
5 2005/06/22 15:44:38
ph10 Exp $ */
+/* $Cambridge: exim/src/src/expand.c,v 1.3
6 2005/06/27 14:29:43
ph10 Exp $ */
/*************************************************
* Exim - an Internet mail transport agent *
/*************************************************
* Exim - an Internet mail transport agent *
@@
-3511,7
+3511,7
@@
while (*s != 0)
}
yield = cat_file(f, yield, &size, &ptr, sub_arg[1]);
}
yield = cat_file(f, yield, &size, &ptr, sub_arg[1]);
- fclose(f);
+
(void)
fclose(f);
continue;
}
continue;
}
@@
-3604,7
+3604,7
@@
while (*s != 0)
alarm(timeout);
yield = cat_file(f, yield, &size, &ptr, sub_arg[3]);
alarm(0);
alarm(timeout);
yield = cat_file(f, yield, &size, &ptr, sub_arg[3]);
alarm(0);
- fclose(f);
+
(void)
fclose(f);
/* After a timeout, we restore the pointer in the result, that is,
make sure we add nothing from the socket. */
/* After a timeout, we restore the pointer in the result, that is,
make sure we add nothing from the socket. */
@@
-3701,7
+3701,7
@@
while (*s != 0)
/* Nothing is written to the standard input. */
/* Nothing is written to the standard input. */
- close(fd_in);
+
(void)
close(fd_in);
/* Wait for the process to finish, applying the timeout, and inspect its
return code for serious disasters. Simple non-zero returns are passed on.
/* Wait for the process to finish, applying the timeout, and inspect its
return code for serious disasters. Simple non-zero returns are passed on.
@@
-3732,7
+3732,7
@@
while (*s != 0)
f = fdopen(fd_out, "rb");
lookup_value = NULL;
lookup_value = cat_file(f, lookup_value, &lsize, &lptr, NULL);
f = fdopen(fd_out, "rb");
lookup_value = NULL;
lookup_value = cat_file(f, lookup_value, &lsize, &lptr, NULL);
- fclose(f);
+
(void)
fclose(f);
}
/* Process the yes/no strings; $value may be useful in both cases */
}
/* Process the yes/no strings; $value may be useful in both cases */