aboutsummaryrefslogtreecommitdiffstats
path: root/src/cg-base.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-12-01 03:23:03 +0100
committerMattias Andrée <maandree@kth.se>2016-12-01 03:23:03 +0100
commit9ecf9c624c5272cf8d576ec173283ebfe72fd373 (patch)
tree8e098894b688a45144a6e7de81b97959490f0785 /src/cg-base.c
parentAdd makefile (diff)
downloadcg-tools-9ecf9c624c5272cf8d576ec173283ebfe72fd373.tar.gz
cg-tools-9ecf9c624c5272cf8d576ec173283ebfe72fd373.tar.bz2
cg-tools-9ecf9c624c5272cf8d576ec173283ebfe72fd373.tar.xz
Fix warnings
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--src/cg-base.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/cg-base.c b/src/cg-base.c
index 24bc09f..e62f178 100644
--- a/src/cg-base.c
+++ b/src/cg-base.c
@@ -15,9 +15,6 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#define _DEFAULT_SOURCE
-#define _BSD_SOURCE
-
#include "cg-base.h"
#include <libclut.h>
@@ -416,7 +413,7 @@ static int get_crtc_info(void)
{
size_t i, unsynced = 0, selected;
char* synced;
- int saved_errno, need_flush = 0;
+ int need_flush = 0;
struct pollfd pollfd;
synced = alloca(crtcs_n * sizeof(*synced));