summaryrefslogtreecommitdiff
path: root/rsync.h
diff options
context:
space:
mode:
authorWayne Davison <wayne@opencoder.net>2020-07-12 22:46:21 -0700
committerWayne Davison <wayne@opencoder.net>2020-07-12 23:25:21 -0700
commitf47e5a7732f9b5da71080fdc229acde4ec6da3c1 (patch)
treeed59883d1e964ff654cd740ec620bb589dacc5a0 /rsync.h
parent91fff802b9513cf0ed616d3aea170d561f899fae (diff)
downloadrsync-f47e5a7732f9b5da71080fdc229acde4ec6da3c1.tar.gz
Mention file & line on OOM and overflow errors.
Also simplify output of src file paths in errors & warnings when built in a alternate build dir.
Diffstat (limited to 'rsync.h')
-rw-r--r--rsync.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/rsync.h b/rsync.h
index 9942a705..c8715747 100644
--- a/rsync.h
+++ b/rsync.h
@@ -1325,6 +1325,9 @@ extern char *do_malloc;
#undef strdup
#define strdup(s) my_strdup(s, __FILE__, __LINE__)
+#define out_of_memory(msg) _out_of_memory(msg, __FILE__, __LINE__)
+#define overflow_exit(msg) _overflow_exit(msg, __FILE__, __LINE__)
+
/* use magic gcc attributes to catch format errors */
void rprintf(enum logcode , const char *, ...)
__attribute__((format (printf, 2, 3)))