summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 74bac9b)
raw | patch | inline | side by side (parent: 74bac9b)
author | Sebastian Harl <sh@tokkee.org> | |
Wed, 19 Dec 2007 19:37:30 +0000 (20:37 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Thu, 27 Dec 2007 10:24:38 +0000 (11:24 +0100) |
This warning appeared on systems using listmntent() or getv?fsstat() when
compiling with debugging disabled only. It was caused by the declaration of a
character array for use with sstrerror() inside a call to DEBUG().
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
compiling with debugging disabled only. It was caused by the declaration of a
character array for use with sstrerror() inside a call to DEBUG().
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/utils_mount.c | patch | blob | history |
diff --git a/src/utils_mount.c b/src/utils_mount.c
index efaa92f7faa8b5c78d5c9ea2084af9a0c95faf1a..44ad7ea8642f98a222140ce9ced1babd7afdb39d 100644 (file)
--- a/src/utils_mount.c
+++ b/src/utils_mount.c
struct tabmntent *mntlist;
if(listmntent(&mntlist, COLLECTD_MNTTAB, NULL, NULL) < 0) {
+#if COLLECT_DEBUG
char errbuf[1024];
DEBUG("utils_mount: calling listmntent() failed: %s",
sstrerror (errno, errbuf, sizeof (errbuf)));
+#endif /* COLLECT_DEBUG */
}
for(p = mntlist; p; p = p->next) {
/* Get the number of mounted file systems */
if ((bufsize = CMD_STATFS (NULL, 0, FLAGS_STATFS)) < 1)
{
+#if COLLECT_DEBUG
char errbuf[1024];
DEBUG ("utils_mount: getv?fsstat failed: %s",
sstrerror (errno, errbuf, sizeof (errbuf)));
+#endif /* COLLECT_DEBUG */
return (NULL);
}
* manpage.. -octo */
if ((num = CMD_STATFS (buf, bufsize * sizeof (STRUCT_STATFS), FLAGS_STATFS)) < 1)
{
+#if COLLECT_DEBUG
char errbuf[1024];
DEBUG ("utils_mount: getv?fsstat failed: %s",
sstrerror (errno, errbuf, sizeof (errbuf)));
+#endif /* COLLECT_DEBUG */
free (buf);
return (NULL);
}