X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=aft.c;h=5f9098aa458955d1338bec6183c67493ce798cad;hb=0b0434f3debae3fc5cd768f5de32f84f05e79761;hp=35a53904a33a85ba484830bc43cf46ec1ae1bd98;hpb=46b9e018548fa7baebe62b6c724d215c84dcb20f;p=paraslash.git diff --git a/aft.c b/aft.c index 35a53904..5f9098aa 100644 --- a/aft.c +++ b/aft.c @@ -1448,7 +1448,7 @@ static int com_ls(struct command_context *cc, struct lls_parse_result *lpr) else if (!strcmp(val, "p") || !strcmp(val, "parser-friendly")) opts->mode = LS_MODE_PARSER; else { - ret = -E_AFT_SYNTAX; + ret = -ERRNO_TO_PARA_ERROR(EINVAL); goto out; } } @@ -1479,7 +1479,7 @@ static int com_ls(struct command_context *cc, struct lls_parse_result *lpr) else if (!strcmp(val, "h") || !strcmp(val, "hash")) opts->sorting = LS_SORT_BY_HASH; else { - ret = -E_AFT_SYNTAX; + ret = -ERRNO_TO_PARA_ERROR(EINVAL); goto out; } }