X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/812b526d127c6657e571db8b33a58137af6709cd..174d2af141dde3ef33fd69bc5a43338bee0895fa:/lib/rights.c?ds=sidebyside 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;