arg.subarg = atoi(argv[1]);
if (ioctl(xopen(VC_1, O_RDONLY), TIOCLINUX, &arg))
- bb_perror_msg_and_die("TIOCLINUX");;
+ bb_perror_msg_and_die("TIOCLINUX");
return 0;
}
/* Die if we can't open an existing file and return an fd. */
int xopen(const char *pathname, int flags)
{
- if (ENABLE_DEBUG && (flags && O_CREAT))
+ if (ENABLE_DEBUG && (flags & O_CREAT))
bb_error_msg_and_die("xopen() with O_CREAT\n");
return xopen3(pathname, flags, 0777);
do {
char temp;
- pos = bottom + (top - bottom) / 2;;
+ pos = bottom + (top - bottom) / 2;
/* If we can read from the current location, it's bigger. */