aboutsummaryrefslogtreecommitdiffstats
path: root/src/cg-query.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-query.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-query.c7
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;