Skip to contentSkip to conversation

Header Protection on mac_dbdma.h

Qemu-devel C.W. Betts 1 participant 1 message Feb 9, 2009

lore
Share & tools
lore

C.W. Betts

author
#0 lore raw

I noticed that the header hw/mac_dbdma.h isn't protected from multiple inclusions. The patch fixes that.

mac_dbdma.h +0 -0
Index: hw/mac_dbdma.h
===================================================================
@@ -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

mac_dbdma.h +3 -0
Index: hw/mac_dbdma.h
===================================================================
@@ -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