summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2004-09-08 15:42:47 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2004-09-08 15:42:47 +0000
commit53d7e32ff3f2c6baf17d10988736ba6bf3f8c4c6 (patch)
tree631d43f541f05d648cdd4e41e0dd3c1e3f531003
parenta8b58dc223afc42c36a551ae6d6992e6bb02b2c7 (diff)
Clean up compiler warnings...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3806 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--fluid/fluid.cxx6
-rw-r--r--src/Fl_Text_Buffer.cxx8
2 files changed, 7 insertions, 7 deletions
diff --git a/fluid/fluid.cxx b/fluid/fluid.cxx
index d57d7fdf8..237c01823 100644
--- a/fluid/fluid.cxx
+++ b/fluid/fluid.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: fluid.cxx,v 1.15.2.13.2.45 2004/09/07 20:59:16 easysw Exp $"
+// "$Id: fluid.cxx,v 1.15.2.13.2.46 2004/09/08 15:42:47 easysw Exp $"
//
// FLUID main entry for the Fast Light Tool Kit (FLTK).
//
@@ -713,7 +713,7 @@ do_shell_command(Fl_Return_Button*, void*) {
shell_run_buffer->append("\n");
shell_run_window->label("Shell Command Running...");
- if ((shell_pipe = popen(command, "r")) == NULL) {
+ if ((shell_pipe = popen((char *)command, "r")) == NULL) {
fl_alert("Unable to run shell command: %s", strerror(errno));
return;
}
@@ -886,5 +886,5 @@ int main(int argc,char **argv) {
}
//
-// End of "$Id: fluid.cxx,v 1.15.2.13.2.45 2004/09/07 20:59:16 easysw Exp $".
+// End of "$Id: fluid.cxx,v 1.15.2.13.2.46 2004/09/08 15:42:47 easysw Exp $".
//
diff --git a/src/Fl_Text_Buffer.cxx b/src/Fl_Text_Buffer.cxx
index e5e4e17a0..9cd61926a 100644
--- a/src/Fl_Text_Buffer.cxx
+++ b/src/Fl_Text_Buffer.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Text_Buffer.cxx,v 1.9.2.21 2004/06/01 20:33:26 easysw Exp $"
+// "$Id: Fl_Text_Buffer.cxx,v 1.9.2.22 2004/09/08 15:42:47 easysw Exp $"
//
// Copyright 2001-2004 by Bill Spitzak and others.
// Original code Copyright Mark Edel. Permission to distribute under
@@ -942,7 +942,7 @@ int Fl_Text_Buffer::expand_character( char c, int indent, char *outStr, int tabD
/* Convert control codes to readable character sequences */
/*... is this safe with international character sets? */
if ( ( ( unsigned char ) c ) <= 31 ) {
- sprintf( outStr, "<%s>", ControlCodeTable[ c ] );
+ sprintf( outStr, "<%s>", ControlCodeTable[ ( unsigned char ) c ] );
return strlen( outStr );
} else if ( c == 127 ) {
sprintf( outStr, "<del>" );
@@ -969,7 +969,7 @@ int Fl_Text_Buffer::character_width( char c, int indent, int tabDist, char nullS
if ( c == '\t' )
return tabDist - ( indent % tabDist );
else if ( ( ( unsigned char ) c ) <= 31 )
- return strlen( ControlCodeTable[ c ] ) + 2;
+ return strlen( ControlCodeTable[ ( unsigned char ) c ] ) + 2;
else if ( c == 127 )
return 5;
else if ( c == nullSubsChar )
@@ -2517,5 +2517,5 @@ Fl_Text_Buffer::outputfile(const char *file, int start, int end, int buflen) {
//
-// End of "$Id: Fl_Text_Buffer.cxx,v 1.9.2.21 2004/06/01 20:33:26 easysw Exp $".
+// End of "$Id: Fl_Text_Buffer.cxx,v 1.9.2.22 2004/09/08 15:42:47 easysw Exp $".
//