diff options
author | Mattias Andrée <maandree@kth.se> | 2016-12-01 03:23:03 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-12-01 03:23:03 +0100 |
commit | 9ecf9c624c5272cf8d576ec173283ebfe72fd373 (patch) | |
tree | 8e098894b688a45144a6e7de81b97959490f0785 /src/cg-query.c | |
parent | Add makefile (diff) | |
download | cg-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-query.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/cg-query.c b/src/cg-query.c index 881b6bf..254945d 100644 --- a/src/cg-query.c +++ b/src/cg-query.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 "arg.h" #include <libcoopgamma.h> @@ -51,7 +48,7 @@ static char* class = NULL; /** * Print usage information and exit */ -void usage(void) +static void usage(void) { fprintf(stderr, "Usage: %s [-M method] [-S site] [-h high] [-l low] [-f class] -c crtc\n", @@ -148,7 +145,7 @@ static int print_info(void) { libcoopgamma_crtc_info_t info; libcoopgamma_filter_table_t table; - char* str; + const char* str; int saved_errno, ret = 0; size_t i; |