index 2d2a73afd79fa54f57d6452dcda85931bd824720..63d4e9d7cd75bf9d6a7652d7241559183fa98e39 100644 (file)
/* Even though Posix requires "strerror_r" to return an "int",
* some systems (e.g. the GNU libc) return a "char *" _and_
* ignore the second argument ... -tokkee */
/* Even though Posix requires "strerror_r" to return an "int",
* some systems (e.g. the GNU libc) return a "char *" _and_
* ignore the second argument ... -tokkee */
-char *sstrerror (int errnum, char *buf, size_t buflen)
+static char *sstrerror (int errnum, char *buf, size_t buflen)
{
buf[0] = 0;
#if !HAVE_STRERROR_R
{
buf[0] = 0;
#if !HAVE_STRERROR_R
- snprintf (buf, buflen "Error #%i; strerror_r is not available.", errnum);
+ snprintf (buf, buflen, "Error #%i; strerror_r is not available.", errnum);
/* #endif !HAVE_STRERROR_R */
#elif STRERROR_R_CHAR_P
/* #endif !HAVE_STRERROR_R */
#elif STRERROR_R_CHAR_P
else
SSTRCATF (command, ":%g", vl->values[i].gauge);
}
else
SSTRCATF (command, ":%g", vl->values[i].gauge);
}
+ else if (vl->values_types[i] == LCC_TYPE_DERIVE)
+ SSTRCATF (command, ":%"PRIu64, vl->values[i].derive);
+ else if (vl->values_types[i] == LCC_TYPE_ABSOLUTE)
+ SSTRCATF (command, ":%"PRIu64, vl->values[i].absolute);
+
} /* for (i = 0; i < vl->values_len; i++) */
status = lcc_sendreceive (c, command, &res);
} /* for (i = 0; i < vl->values_len; i++) */
status = lcc_sendreceive (c, command, &res);