projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tree-wide: remove last remnants of sizeof(char)
[collectd.git]
/
src
/
daemon
/
common.c
diff --git
a/src/daemon/common.c
b/src/daemon/common.c
index
ec5c7ab
..
a167122
100644
(file)
--- a/
src/daemon/common.c
+++ b/
src/daemon/common.c
@@
-37,10
+37,6
@@
#include "plugin.h"
#include "utils_cache.h"
#include "plugin.h"
#include "utils_cache.h"
-#ifdef HAVE_MATH_H
-#include <math.h>
-#endif
-
/* for getaddrinfo */
#include <netdb.h>
#include <sys/types.h>
/* for getaddrinfo */
#include <netdb.h>
#include <sys/types.h>
@@
-154,7
+150,7
@@
char *sstrdup(const char *s) {
ERROR("sstrdup: Out of memory.");
exit(3);
}
ERROR("sstrdup: Out of memory.");
exit(3);
}
- memcpy(r, s, s
izeof(char) * s
z);
+ memcpy(r, s, sz);
return (r);
} /* char *sstrdup */
return (r);
} /* char *sstrdup */