From owner-cvs-all@FreeBSD.ORG Sat Feb 11 01:17:05 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 48CE716A420; Sat, 11 Feb 2006 01:17:05 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 044E943D45; Sat, 11 Feb 2006 01:17:05 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1B1H47a076896; Sat, 11 Feb 2006 01:17:04 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1B1H484076895; Sat, 11 Feb 2006 01:17:04 GMT (envelope-from mux) Message-Id: <200602110117.k1B1H484076895@repoman.freebsd.org> From: Maxime Henrion Date: Sat, 11 Feb 2006 01:17:04 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup stream.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Feb 2006 01:17:05 -0000 mux 2006-02-11 01:17:04 UTC FreeBSD projects repository Modified files: csup stream.c Log: Simplify the code to handle the file access mode in stream_open_file(). Since we have ANDed the flags value with O_ACCMODE, we can just use the == operator to test for the flags without needing any special handling in case one of the flags is defined to 0. Revision Changes Path 1.53 +10 -5 projects/csup/stream.c