All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit 45212eb1 authored by Mike Hibler's avatar Mike Hibler

Deal with odd (lack of) sign-extension problem on Arm.

Assigning -1 to (char) and then converting back to (int) did not seem
to sign extend--the result was 255 (0xff).
parent a12e3c71
......@@ -64,7 +64,7 @@ main(int argc, char **argv) {
char *keyfile = NULL;
char *logfile = NULL;
char *progname;
char c;
int c;
char buf[BUFSIZ];
pideid = NULL;
......@@ -91,12 +91,15 @@ main(int argc, char **argv) {
keyfile = optarg;
break;
default:
fprintf(stderr, "*** invalid argument '%c'\n", c);
usage(progname);
}
}
if (!pideid)
if (!pideid) {
fprintf(stderr, "*** must specify pid/eid\n");
usage(progname);
}
if (debug)
loginit(0, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment