diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-03-04 18:20:11 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-03-04 18:20:11 +0100 |
commit | 365b6bf765a25e6cab087491fd2a5416499256ef (patch) | |
tree | 952665e655143a3c99a7d9fff440b0e0e67b7431 /src/flpsed.cxx | |
parent | 00b21c9ee2af7457ce9f05f80144a245d1ef0750 (diff) |
fix const related warnings reported by gcc 4.3.3 (via Kapil Hari Paranjape)
Diffstat (limited to 'src/flpsed.cxx')
-rw-r--r-- | src/flpsed.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/flpsed.cxx b/src/flpsed.cxx index a00b9b4..deffd73 100644 --- a/src/flpsed.cxx +++ b/src/flpsed.cxx @@ -128,7 +128,7 @@ void page_sel_fill() { void open_file(char *file) { FILE *p; int status; - char *args[32]; + const char *args[5]; pid_t pid; char *dot = strrchr(file, '.'); @@ -139,7 +139,7 @@ void open_file(char *file) { args[2] = "-"; args[3] = NULL; - p = pexecvp("pdftops", args, &pid, "r"); + p = pexecvp("pdftops", const_cast<char * const *>(args), &pid, "r"); if (p) { psed_p->open_file(p); @@ -183,7 +183,7 @@ void export_pdf_cb() { char *file; FILE *p; int status; - char *args[32]; + const char *args[5]; pid_t pid; file = fl_file_chooser("Open File?", "*.pdf", NULL); @@ -195,7 +195,7 @@ void export_pdf_cb() { signal(SIGPIPE, SIG_IGN); - p = pexecvp("ps2pdf", args, &pid, "w"); + p = pexecvp("ps2pdf", const_cast<char * const *>(args), &pid, "w"); if (p) { psed_p->save(p); @@ -319,7 +319,7 @@ Fl_Choice *size_c; Fl_Button *color_b; static struct { - char *label; + const char *label; int size; } text_sizes[] = { {"8", 8}, |