X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/e7eb3a2744aa45179daea235800753d3d1955338..ff75e16ea3fc8406f49fc8aa1f00407bb0391368:/lib/rights.c diff --git a/lib/rights.c b/lib/rights.c index 05a3342..75a3d8e 100644 --- a/lib/rights.c +++ b/lib/rights.c @@ -85,7 +85,7 @@ int parse_rights(const char *s, rights_type *rp, int report) { if(!*s) { /* You can't have no rights */ if(report) - error(0, "empty rights string"); + disorder_error(0, "empty rights string"); return -1; } while(*s) { @@ -102,7 +102,7 @@ int parse_rights(const char *s, rights_type *rp, int report) { break; if(n >= NRIGHTS) { if(report) - error(0, "unknown user right '%.*s'", (int)l, s); + disorder_error(0, "unknown user right '%.*s'", (int)l, s); return -1; } r |= rights_names[n].bit;