X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/misc/blobdiff_plain/8ec37147b68377e120e850815010cfe625261ed3..ed68d9a61a11bc1ba3f80c1b51c2715906c62f87:/prlimit.c diff --git a/prlimit.c b/prlimit.c index d7f94f9..b7d6df1 100644 --- a/prlimit.c +++ b/prlimit.c @@ -175,14 +175,14 @@ static const struct limittab *findlimit(const char *p, size_t n) if (strncmp(lt->name, p, n) == 0 && !lt->name[n]) return (lt); } - die(EXIT_FAILURE, "unknown resource limit `%.*s'\n", n, p); + die(EXIT_FAILURE, "unknown resource limit `%.*s'\n", (int)n, p); return (0); } /*----- Help functions ----------------------------------------------------*/ static void usage(FILE *fp) - { pquis(fp, "Usage: % -l | " + { pquis(fp, "Usage: $ -l | " "{hard | soft | both | PID | RSRC[=VALUE]}...\n"); } static void version(FILE *fp)