[Spice-devel,07/11] syntax-check: make sure config.h is the first included .h file

Submitted by Uri Lublin on July 17, 2013, 2:04 p.m.

Details

Message ID 1374069861-22750-7-git-send-email-uril@redhat.com
State New
Headers show

Not browsing as part of any series.

Commit Message

Uri Lublin July 17, 2013, 2:04 p.m.
---
 server/char_device.c        | 1 +
 server/spice_timer_queue.c  | 1 +
 server/tests/test_vdagent.c | 2 +-
 3 files changed, 3 insertions(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/server/char_device.c b/server/char_device.c
index 721bd8d..792ab9c 100644
--- a/server/char_device.c
+++ b/server/char_device.c
@@ -20,6 +20,7 @@ 
 */


+#include <config.h>
 #include "char_device.h"
 #include "red_channel.h"
 #include "reds.h"
diff --git a/server/spice_timer_queue.c b/server/spice_timer_queue.c
index 690ab83..833ab1d 100644
--- a/server/spice_timer_queue.c
+++ b/server/spice_timer_queue.c
@@ -15,6 +15,7 @@ 
    You should have received a copy of the GNU Lesser General Public
    License along with this library; if not, see <http://www.gnu.org/licenses/>.
 */
+#include <config.h>
 #include <pthread.h>
 #include "red_common.h"
 #include "spice_timer_queue.h"
diff --git a/server/tests/test_vdagent.c b/server/tests/test_vdagent.c
index bb267dd..af33145 100644
--- a/server/tests/test_vdagent.c
+++ b/server/tests/test_vdagent.c
@@ -2,8 +2,8 @@ 
  * Test vdagent guest to server messages
  */

-#include <string.h>
 #include <config.h>
+#include <string.h>
 #include <stdlib.h>
 #include <stdio.h>