projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implemented the use of %m as a shortcut for %s and strerror(errno) in all syslog...
[citadel.git]
/
citadel
/
context.c
diff --git
a/citadel/context.c
b/citadel/context.c
index 4e8594d785d4dbbcc83cfe66de4beeacfeab48bb..f95a7a2f7cab24e9a867aa92f4f95b6f993c6e72 100644
(file)
--- a/
citadel/context.c
+++ b/
citadel/context.c
@@
-347,7
+347,7
@@
CitContext *CreateNewContext(void) {
me = (CitContext *) malloc(sizeof(CitContext));
if (me == NULL) {
me = (CitContext *) malloc(sizeof(CitContext));
if (me == NULL) {
- syslog(LOG_ERR, "citserver: malloc() failed: %
s", strerror(errno)
);
+ syslog(LOG_ERR, "citserver: malloc() failed: %
m"
);
return NULL;
}
memset(me, 0, sizeof(CitContext));
return NULL;
}
memset(me, 0, sizeof(CitContext));
@@
-396,7
+396,7
@@
CitContext *CloneContext(CitContext *CloneMe) {
me = (CitContext *) malloc(sizeof(CitContext));
if (me == NULL) {
me = (CitContext *) malloc(sizeof(CitContext));
if (me == NULL) {
- syslog(LOG_ERR, "citserver: malloc() failed: %
s", strerror(errno)
);
+ syslog(LOG_ERR, "citserver: malloc() failed: %
m"
);
return NULL;
}
memcpy(me, CloneMe, sizeof(CitContext));
return NULL;
}
memcpy(me, CloneMe, sizeof(CitContext));