-/* remote.c 4.4 81/11/20 */
+/* remote.c 4.5 81/11/29 */
# include "tip.h"
/*
}
for (p = capstrings, q = caps; *p != NULL; p++, q++)
- **q = rgetstr(*p, &bp);
- if ((BR = rgetnum("br")) < 0)
+ if (**q == NULL)
+ **q = rgetstr(*p, &bp);
+ if (!BR && (BR = rgetnum("br")) < 0)
BR = DEFBR;
if ((FS = rgetnum("fs")) < 0)
FS = DEFFS;
- DU = rgetflag("du");
- HW = rgetflag("hw");
+ if (DU < 0)
+ DU = 0;
+ else
+ DU = rgetflag("du");
if (DV == NOSTR) {
fprintf(stderr, "%s: missing device spec\n", host);
exit(3);
* a rotary action to be simulated)
*/
if (next == NOSTR)
- return(NOSTR);
+ return (NOSTR);
if ((cp = index(next, ',')) == NULL) {
DV = next;
next = NOSTR;
DV = next;
next = cp;
}
- return(DV);
+ return (DV);
}