Commit Graph

9 Commits

Author SHA1 Message Date
Marcel Holtmann
bffd612cad tools: Remove include of compat ppoll header 2012-12-09 00:42:07 +01:00
Johan Hedberg
b8779d2202 Revert "Ensure config.h is included by using CPPFLAGS"
This reverts commit 8a03376544.

The patch needs to be split up and the gdbus/ changes were bogus
compared to the original commit message.

Conflicts:
	Makefile.am
	Makefile.obexd
	profiles/cyclingspeed/cyclingspeed.c
	profiles/heartrate/heartrate.c
	src/error.c
2012-12-07 12:46:04 +02:00
Lucas De Marchi
8a03376544 Ensure config.h is included by using CPPFLAGS
Instead of trying to include config.h in each file over the tree and
possibly forgetting to include it, give a "-include config.h" argument
to the compiler so it's guaranteed that a) it will be included for all
source files and b) it will be the first header included.

gdbus/ directory is left out, since it would break other projects using
it.
2012-12-05 17:18:07 +02:00
Lucas De Marchi
b84f6f794b build-sys: Define _GNU_SOURCE in config.h
Instead of defining _GNU_SOURCE in each source file (and potentially
forgetting in some), tell the build system we use extensions and let it
define _GNU_SOURCE in config.h.
2012-12-05 17:17:36 +02:00
Anderson Lizardo
78889501f8 Fix trivial coding style issues on pointer declarations and casting
Avoid using C++ style pointer declarations like "char* ptr", as most
BlueZ code uses "char *ptr".
2012-08-26 09:37:06 +01:00
Lucas De Marchi
5bec57420b rfcomm: Remove support for configuration file 2012-08-09 22:52:38 -07:00
Lucas De Marchi
dde5b23665 rfcomm: Fix checking return value instead of errno
We were checking by a positive return value instead of checking by -1
and errno. However when there's no support for TTY kernel returns
EOPNOTSUPP as usual, which in the end will have a return value of -1
and errno will be set to EOPNOTSUPP.
2012-08-09 22:52:37 -07:00
Vinicius Costa Gomes
42dc0063e4 tools: Fix using old-style initializers 2012-02-14 14:28:58 +02:00
Gustavo F. Padovan
12eac6993b rename: tools/main.c to tools/rfcomm.c 2011-02-04 06:55:46 +02:00