#include <string.h>
#include <unistd.h>
-#define LENGTH(x) (sizeof (x) / sizeof (x)[0])
+#define LENGTH(x) (sizeof(x) / sizeof((x)[0]))
#define MAX(a,b) (((a) > (b)) ? (a) : (b))
#define MIN(a,b) (((a) < (b)) ? (a) : (b))
ptm = posix_openpt(O_RDWR);
#else
ptm = open("/dev/ptmx", O_RDWR);
- if(ptm == -1) {
+ if(ptm == -1)
if(openpty(&ptm, &pts, NULL, NULL, NULL) == -1)
eprintn("error, cannot open pty");
- return;
- }
#endif
#if defined(_XOPEN_SOURCE)
if(ptm != -1) {
s |= QuestionMark;
else if(c == ';') {
if(!(s & Digit))
- eprint("syntax error");
+ eprint("syntax error\n");
s &= ~Digit;
j++;
}