projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Run all changed files 68 8.c/1*.h through format.sh web util
[collectd.git]
/
src
/
utils
/
common
/
common.c
diff --git
a/src/utils/common/common.c
b/src/utils/common/common.c
index
0d2aaae
..
6ee4e08
100644
(file)
--- a/
src/utils/common/common.c
+++ b/
src/utils/common/common.c
@@
-181,7
+181,7
@@
char *sstrerror(int errnum, char *buf, size_t buflen) {
pthread_mutex_unlock(&strerror_r_lock);
}
pthread_mutex_unlock(&strerror_r_lock);
}
-
/* #endif !HAVE_STRERROR_R */
+/* #endif !HAVE_STRERROR_R */
#elif STRERROR_R_CHAR_P
{
#elif STRERROR_R_CHAR_P
{
@@
-191,19
+191,17
@@
char *sstrerror(int errnum, char *buf, size_t buflen) {
if ((temp != NULL) && (temp != buf) && (temp[0] != '\0'))
sstrncpy(buf, temp, buflen);
else
if ((temp != NULL) && (temp != buf) && (temp[0] != '\0'))
sstrncpy(buf, temp, buflen);
else
- sstrncpy(buf,
- "strerror_r did not return "
- "an error message",
+ sstrncpy(buf, "strerror_r did not return "
+ "an error message",
buflen);
}
}
buflen);
}
}
-
/* #endif STRERROR_R_CHAR_P */
+/* #endif STRERROR_R_CHAR_P */
#else
if (strerror_r(errnum, buf, buflen) != 0) {
#else
if (strerror_r(errnum, buf, buflen) != 0) {
- snprintf(buf, buflen,
- "Error #%i; "
- "Additionally, strerror_r failed.",
+ snprintf(buf, buflen, "Error #%i; "
+ "Additionally, strerror_r failed.",
errnum);
}
#endif /* STRERROR_R_CHAR_P */
errnum);
}
#endif /* STRERROR_R_CHAR_P */