[Openais] [PATCH openais 4/9] don't include <assert.h> when assert is not used
Jim Meyering
jim at meyering.net
Sun Jun 21 11:42:54 PDT 2009
From: Jim Meyering <meyering at redhat.com>
* lib/clm.c: Don't include <assert.h>.
* lib/lck.c: Likewise.
* lib/msg.c: Likewise.
* lib/tmr.c: Likewise.
* lib/util.c: Likewise.
---
lib/clm.c | 3 +--
lib/lck.c | 1 -
lib/msg.c | 1 -
lib/tmr.c | 1 -
lib/util.c | 1 -
5 files changed, 1 insertions(+), 6 deletions(-)
diff --git a/lib/clm.c b/lib/clm.c
index 00294c4..5716502 100644
--- a/lib/clm.c
+++ b/lib/clm.c
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2002-2005 MontaVista Software, Inc.
- * Copyright (c) 2006 Red Hat, Inc.
+ * Copyright (c) 2006, 2009 Red Hat, Inc.
*
* All rights reserved.
*
@@ -39,7 +39,6 @@
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
-#include <assert.h>
#include <errno.h>
#include <pthread.h>
#include <sys/types.h>
diff --git a/lib/lck.c b/lib/lck.c
index 7782357..62d4e57 100644
--- a/lib/lck.c
+++ b/lib/lck.c
@@ -38,7 +38,6 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#include <assert.h>
#include <unistd.h>
#include <inttypes.h>
#include <errno.h>
diff --git a/lib/msg.c b/lib/msg.c
index 328045e..830527e 100644
--- a/lib/msg.c
+++ b/lib/msg.c
@@ -37,7 +37,6 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#include <assert.h>
#include <unistd.h>
#include <inttypes.h>
#include <errno.h>
diff --git a/lib/tmr.c b/lib/tmr.c
index ad10215..39e8bb5 100644
--- a/lib/tmr.c
+++ b/lib/tmr.c
@@ -37,7 +37,6 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#include <assert.h>
#include <unistd.h>
#include <inttypes.h>
#include <errno.h>
diff --git a/lib/util.c b/lib/util.c
index 915a5d9..5bc3ab4 100644
--- a/lib/util.c
+++ b/lib/util.c
@@ -53,7 +53,6 @@
#include <net/if.h>
#include <arpa/inet.h>
#include <netinet/in.h>
-#include <assert.h>
#include <saAis.h>
#include "util.h"
--
1.6.3.2.448.g363bdb
More information about the Openais
mailing list