aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-09-05 09:36:19 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-09-05 09:36:19 +0000
commit53360a69f793baf0a0116d63e2069d54d33319d8 (patch)
treebf50209ee814a956a4a9e3b85c3642f585978e5b /libbb
parent6c01118cc07948fd47fb09ae8117ac1df9cb7e6a (diff)
downloadbusybox-w32-53360a69f793baf0a0116d63e2069d54d33319d8.tar.gz
busybox-w32-53360a69f793baf0a0116d63e2069d54d33319d8.tar.bz2
busybox-w32-53360a69f793baf0a0116d63e2069d54d33319d8.zip
xfunc: fix: && -> &. Also nuked two double semicolons...
git-svn-id: svn://busybox.net/trunk/busybox@16052 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb')
-rw-r--r--libbb/xfuncs.c4
1 files changed, 2 insertions, 2 deletions
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)
108/* Die if we can't open an existing file and return an fd. */ 108/* Die if we can't open an existing file and return an fd. */
109int xopen(const char *pathname, int flags) 109int xopen(const char *pathname, int flags)
110{ 110{
111 if (ENABLE_DEBUG && (flags && O_CREAT)) 111 if (ENABLE_DEBUG && (flags & O_CREAT))
112 bb_error_msg_and_die("xopen() with O_CREAT\n"); 112 bb_error_msg_and_die("xopen() with O_CREAT\n");
113 113
114 return xopen3(pathname, flags, 0777); 114 return xopen3(pathname, flags, 0777);
@@ -349,7 +349,7 @@ off_t fdlength(int fd)
349 do { 349 do {
350 char temp; 350 char temp;
351 351
352 pos = bottom + (top - bottom) / 2;; 352 pos = bottom + (top - bottom) / 2;
353 353
354 /* If we can read from the current location, it's bigger. */ 354 /* If we can read from the current location, it's bigger. */
355 355