summaryrefslogtreecommitdiff
path: root/fluid
diff options
context:
space:
mode:
authorBill Spitzak <spitzak@gmail.com>2000-08-20 04:35:17 +0000
committerBill Spitzak <spitzak@gmail.com>2000-08-20 04:35:17 +0000
commit949479b5b21827ba33c681d213b9909a0bfaaedc (patch)
tree297756bdb5bf3ef82a83daa9caa74b9993163e1d /fluid
parent23689de7fbe7ba72107424d439d69cf1e2ec34f1 (diff)
Removed some (not all) of the warnings when compiled with -Wwrite-strings,
this should also get similar warnings Solaris produces. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1292 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid')
-rw-r--r--fluid/fluid.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/fluid/fluid.cxx b/fluid/fluid.cxx
index d38ac1916..cb028bf4e 100644
--- a/fluid/fluid.cxx
+++ b/fluid/fluid.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: fluid.cxx,v 1.15.2.8 2000/06/08 08:26:45 bill Exp $"
+// "$Id: fluid.cxx,v 1.15.2.9 2000/08/20 04:35:16 spitzak Exp $"
//
// FLUID main entry for the Fast Light Tool Kit (FLTK).
//
@@ -208,7 +208,7 @@ void write_cb(Fl_Widget *, void *) {
}
void write_strings_cb(Fl_Widget *, void *) {
- static char *exts[] = { ".txt", ".po", ".msg" };
+ static const char *exts[] = { ".txt", ".po", ".msg" };
if (!filename) {
save_cb(0,0);
if (!filename) return;
@@ -421,11 +421,12 @@ static int arg(int argc, char** argv, int& i) {
#endif
#endif
+extern "C" {
static void sigint(SIGARG) {
signal(SIGINT,sigint);
exit_cb(0,0);
}
-
+}
#endif
int main(int argc,char **argv) {
@@ -464,5 +465,5 @@ int main(int argc,char **argv) {
}
//
-// End of "$Id: fluid.cxx,v 1.15.2.8 2000/06/08 08:26:45 bill Exp $".
+// End of "$Id: fluid.cxx,v 1.15.2.9 2000/08/20 04:35:16 spitzak Exp $".
//