Exemplo n.º 1
0
/** To print a hdfsBuilder as string */
static const char *hdfsBuilderToStr(const struct hdfsBuilder *bld,
                                    char *buf, size_t bufLen)
{
    int strlength = snprintf(buf, bufLen, "nn=%s, port=%d, "
             "kerbTicketCachePath=%s, userName=%s",
             maybeNull(bld->nn), bld->port,
             maybeNull(bld->kerbTicketCachePath), maybeNull(bld->userName));
    if (strlength < 0 || strlength >= bufLen) {
        fprintf(stderr, "failed to print a hdfsBuilder as string.\n");
        return NULL;
    }
    return buf;
}
Exemplo n.º 2
0
void testSuppression() {
	use(*maybeNull());
}