Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LWOiV-0002e8-Gc for qemu-devel@nongnu.org; Mon, 09 Feb 2009 00:29:59 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LWOiT-0002cd-GF for qemu-devel@nongnu.org; Mon, 09 Feb 2009 00:29:58 -0500 Received: from [199.232.76.173] (port=52079 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWOiT-0002cU-8X for qemu-devel@nongnu.org; Mon, 09 Feb 2009 00:29:57 -0500 Received: from bay0-omc2-s2.bay0.hotmail.com ([65.54.246.138]:7120) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LWOiS-0002Ne-9k for qemu-devel@nongnu.org; Mon, 09 Feb 2009 00:29:56 -0500 Message-ID: Message-Id: <8E614A70-215E-4AB5-BDFB-79CEB62914A0@hotmail.com> From: C.W. Betts Content-Type: multipart/alternative; boundary=Apple-Mail-36-299631056 Mime-Version: 1.0 (Apple Message framework v930.3) Date: Sun, 8 Feb 2009 22:29:45 -0700 Subject: [Qemu-devel] Header Protection on mac_dbdma.h Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --Apple-Mail-36-299631056 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit I noticed that the header hw/mac_dbdma.h isn't protected from multiple inclusions. The patch fixes that. Index: hw/mac_dbdma.h =================================================================== --- hw/mac_dbdma.h (revision 6564) +++ hw/mac_dbdma.h (working copy) @@ -19,6 +19,8 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#ifndef __MAC_DBDMA_H__ +#define __MAC_DBDMA_H__ typedef struct { void *opaque; @@ -39,3 +41,4 @@ void *opaque); void DBDMA_schedule(void); void* DBDMA_init (int *dbdma_mem_index); +#endif --Apple-Mail-36-299631056 Content-Type: multipart/mixed; boundary=Apple-Mail-37-299631057 --Apple-Mail-37-299631057 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable I noticed that the header = hw/mac_dbdma.h isn't protected from multiple inclusions.  The patch = fixes that.
Index: hw/mac_dbdma.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- = hw/mac_dbdma.h (revision 6564)
+++ = hw/mac_dbdma.h (working copy)
@@ -19,6 +19,8 = @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE = OR THE USE OR OTHER DEALINGS IN
  * THE = SOFTWARE.
  */
+#ifndef = __MAC_DBDMA_H__
+#define __MAC_DBDMA_H__
 
 typedef struct = {
     void = *opaque;
@@ -39,3 +41,4 @@
       =                     =   void *opaque);
 void DBDMA_schedule(void);
 void* DBDMA_init (int = *dbdma_mem_index);
+#endif

= --Apple-Mail-37-299631057 Content-Disposition: attachment; filename=mac_dbdma-patch.diff Content-Type: application/octet-stream; x-unix-mode=0644; name="mac_dbdma-patch.diff" Content-Transfer-Encoding: 7bit Index: hw/mac_dbdma.h =================================================================== --- hw/mac_dbdma.h (revision 6564) +++ hw/mac_dbdma.h (working copy) @@ -19,6 +19,8 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#ifndef __MAC_DBDMA_H__ +#define __MAC_DBDMA_H__ typedef struct { void *opaque; @@ -39,3 +41,4 @@ void *opaque); void DBDMA_schedule(void); void* DBDMA_init (int *dbdma_mem_index); +#endif --Apple-Mail-37-299631057 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: 7bit
--Apple-Mail-37-299631057-- --Apple-Mail-36-299631056--