Clean up compiler warnings...

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3806 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet 2004-09-08 15:42:47 +00:00
parent a8b58dc223
commit 53d7e32ff3
2 changed files with 7 additions and 7 deletions

View File

@ -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 $".
//

View File

@ -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 $".
//