[Pkg-running-devel] [antpm] 12/48: gant: conversion to c99

Kristof Ralovich ralovich-guest at moszumanska.debian.org
Mon Aug 11 10:10:31 UTC 2014


This is an automated email from the git hooks/post-receive script.

ralovich-guest pushed a commit to branch upstream
in repository antpm.

commit d8b8771d786b4e8f8e2dd07e7bdffd483c5a3767
Author: RALOVICH, Kristof <tade60 at freemail.hu>
Date:   Wed Mar 26 10:34:18 2014 +0100

    gant: conversion to c99
---
 src/CMakeLists.txt | 2 +-
 src/gant/antdefs.h | 3 +++
 src/gant/antlib.c  | 5 +++++
 src/gant/gant.c    | 3 +++
 4 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 50842e8..c4188bc 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -42,7 +42,7 @@ IF(CMAKE_COMPILER_IS_GNUCXX)
   SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -O2 -g")
   SET(CMAKE_CXX_FLAGS_RELEASE        "${CMAKE_CXX_FLAGS_RELEASE} -O2")
   set(CMAKE_CXX_FLAGS_DEBUG          "${CMAKE_CXX_FLAGS_DEBUG} -O0 -g3 -ggdb3")
-  set(CMAKE_C_FLAGS                  "${CMAKE_C_FLAGS} -pedantic -Wextra -Wall")
+  set(CMAKE_C_FLAGS                  "${CMAKE_C_FLAGS} -std=c99 -pedantic -Wextra -Wall")
   set(CMAKE_C_FLAGS_DEBUG            "${CMAKE_C_FLAGS_DEBUG} -g3 -ggdb3")
 
   IF(USE_COVERAGE)
diff --git a/src/gant/antdefs.h b/src/gant/antdefs.h
index 0b83447..23cb824 100644
--- a/src/gant/antdefs.h
+++ b/src/gant/antdefs.h
@@ -4,6 +4,9 @@
 #ifndef __ANTDEFS_H__
 #define __ANTDEFS_H__
 typedef unsigned char uchar;
+typedef unsigned short ushort;
+typedef unsigned int uint;
+typedef unsigned long ulong;
 typedef uchar (*RESPONSE_FUNC)(uchar chan, uchar msgid);
 typedef uchar (*CHANNEL_EVENT_FUNC)(uchar chan, uchar event);
 
diff --git a/src/gant/antlib.c b/src/gant/antlib.c
index 0a2faf4..2671093 100644
--- a/src/gant/antlib.c
+++ b/src/gant/antlib.c
@@ -1,5 +1,8 @@
 /* copyright 2008 paul at ant.sbrk.co.uk. released under GPLv3 */
 /* vers 0.6t */
+
+#define _XOPEN_SOURCE 500
+#define _BSD_SOURCE
 #include <unistd.h>
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -9,6 +12,8 @@
 #include <pthread.h>
 #include <termios.h>
 #include <stdlib.h>
+#include <strings.h> /* bzero */
+#include <sys/select.h> /* fd_set */
 
 #define __declspec(X)
 
diff --git a/src/gant/gant.c b/src/gant/gant.c
index f9baa12..dd0ef99 100644
--- a/src/gant/gant.c
+++ b/src/gant/gant.c
@@ -1,6 +1,8 @@
 /* copyright 2010 Klaus at Ethgen.de. released under GPLv3 */
 /* copyright 2008-2009 paul at ant.sbrk.co.uk */
 /* copyright 2009-2009 Wali */
+
+#define _XOPEN_SOURCE /* getopt */
 #include <stdio.h>
 #include <sys/select.h>
 #include <sys/time.h>
@@ -14,6 +16,7 @@
 #include <time.h>
 #include <math.h>
 #include <ctype.h>
+#include <strings.h> /* bzero */
 
 #include <libxml/encoding.h>
 #include <libxml/xmlwriter.h>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-running/antpm.git



More information about the Pkg-running-devel mailing list