From c2963fa6c1f6da2117663d69505efb3bf2cc4145 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 8 May 2008 09:02:12 +0100 Subject: [PATCH] [cairo-boilerplate] Silence compiler warning. Mark the optstr argument as const to silence a compiler warning in cairo-perf. --- boilerplate/cairo-boilerplate-getopt.c | 2 +- boilerplate/cairo-boilerplate-getopt.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/boilerplate/cairo-boilerplate-getopt.c b/boilerplate/cairo-boilerplate-getopt.c index 6591598ae..be66ac235 100644 --- a/boilerplate/cairo-boilerplate-getopt.c +++ b/boilerplate/cairo-boilerplate-getopt.c @@ -94,7 +94,7 @@ static int permute_argv_once() } -int _cairo_getopt(int argc, char** argv, char* optstr) +int _cairo_getopt(int argc, char** argv, const char* optstr) { int c = 0; diff --git a/boilerplate/cairo-boilerplate-getopt.h b/boilerplate/cairo-boilerplate-getopt.h index 6ed780c97..74bce14c7 100644 --- a/boilerplate/cairo-boilerplate-getopt.h +++ b/boilerplate/cairo-boilerplate-getopt.h @@ -48,7 +48,7 @@ extern int optind; extern int opterr; extern int optopt; -int _cairo_getopt(int argc, char** argv, char* optstr); +int _cairo_getopt(int argc, char** argv, const char* optstr); #ifdef __cplusplus