summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5da8c2e)
Public functions should always return a proper error code on
failure. Returning -1 is asking for trouble.
PARA_ERROR(SIZE_PREFIX, "bad size prefix"), \
PARA_ERROR(REGEX, "regular expression error"), \
PARA_ERROR(ARG_NOT_FOUND, "argument not found in arg vector"), \
PARA_ERROR(SIZE_PREFIX, "bad size prefix"), \
PARA_ERROR(REGEX, "regular expression error"), \
PARA_ERROR(ARG_NOT_FOUND, "argument not found in arg vector"), \
+ PARA_ERROR(BAD_LL, "invalid loglevel"), \
return LL_CRIT;
if (loglevel_equal(txt, "emerg"))
return LL_EMERG;
return LL_CRIT;
if (loglevel_equal(txt, "emerg"))
return LL_EMERG;
}
static int get_next_word(const char *buf, const char *delim, char **word)
}
static int get_next_word(const char *buf, const char *delim, char **word)