Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
011e85a
)
Mark out_of_memory() and overflow_exit() with NORETURN.
author
Wayne Davison
<wayned@samba.org>
Fri, 13 Oct 2006 07:38:11 +0000
(07:38 +0000)
committer
Wayne Davison
<wayned@samba.org>
Fri, 13 Oct 2006 07:38:11 +0000
(07:38 +0000)
util.c
patch
|
blob
|
blame
|
history
diff --git
a/util.c
b/util.c
index
6526a3d
..
f32d881
100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-109,13
+109,13
@@
void print_child_argv(char **cmd)
rprintf(FCLIENT, "\n");
}
-void out_of_memory(char *str)
+
NORETURN
void out_of_memory(char *str)
{
rprintf(FERROR, "ERROR: out of memory in %s [%s]\n", str, who_am_i());
exit_cleanup(RERR_MALLOC);
}
-void overflow_exit(char *str)
+
NORETURN
void overflow_exit(char *str)
{
rprintf(FERROR, "ERROR: buffer overflow in %s [%s]\n", str, who_am_i());
exit_cleanup(RERR_MALLOC);