From d25a2645f5273e70616abe73e6ac1adda5016532 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 5 Sep 2006 09:36:19 +0000 Subject: xfunc: fix: && -> &. Also nuked two double semicolons... --- libbb/xfuncs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libbb/xfuncs.c') diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c index 116cff459..850721e3e 100644 --- a/libbb/xfuncs.c +++ b/libbb/xfuncs.c @@ -108,7 +108,7 @@ FILE *xfopen(const char *path, const char *mode) /* 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); @@ -349,7 +349,7 @@ off_t fdlength(int fd) do { char temp; - pos = bottom + (top - bottom) / 2;; + pos = bottom + (top - bottom) / 2; /* If we can read from the current location, it's bigger. */ -- cgit v1.2.3