(servercmd): Parsed BTUs into nmin and minutes into nbtu. Fix. No

functional change.
This commit is contained in:
Markus Armbruster 2005-05-07 08:47:32 +00:00
parent 921fba6532
commit 647783f652

View file

@ -83,11 +83,11 @@ servercmd(struct ioqueue *ioq, FILE *auxfi)
code = *buf - '0'; code = *buf - '0';
switch (code) { switch (code) {
case C_PROMPT: case C_PROMPT:
if (sscanf(p, "%d %d", &nbtu, &nmin) != 2) { if (sscanf(p, "%d %d", &nmin, &nbtu) != 2) {
fprintf(stderr, "prompt: bad server prompt %s\n", p); fprintf(stderr, "prompt: bad server prompt %s\n", p);
} }
mode = code; mode = code;
sprintf(the_prompt, "[%d:%d] Command : ", nbtu, nmin); sprintf(the_prompt, "[%d:%d] Command : ", nmin, nbtu);
prompt(auxfi); prompt(auxfi);
break; break;
case C_REDIR: case C_REDIR: