[cairo-boilerplate] Silence compiler warning.

Mark the optstr argument as const to silence a compiler warning in
cairo-perf.
This commit is contained in:
Chris Wilson 2008-05-08 09:02:12 +01:00
parent ac44817c4a
commit c2963fa6c1
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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