Elimate compiler warnings
[ctsim.git] / libctgraphics / pol.cpp
index f433e5fd10b6ddcefc8c787dea46cd2a634bd5e8..da43586cf38ca26aadfb285e969c6e77d0be3a11 100644 (file)
@@ -4,9 +4,7 @@
 **   POL - Problem Oriented Language
 **
 **  This is part of the CTSim program
-**  Copyright (c) 1983-2001 Kevin Rosenberg
-**
-**  $Id$
+**  Copyright (c) 1983-2009 Kevin Rosenberg
 **
 **  This program is free software; you can redistribute it and/or modify
 **  it under the terms of the GNU General Public License (version 2) as
@@ -135,7 +133,7 @@ POL::addKeyword (const char* const str, int code)
 */
 
 bool
-POL::readWord (char *search, int nlet)
+POL::readWord (const char *search, int nlet)
 {
   tok (&token);
   if (m_bTrace)
@@ -311,10 +309,11 @@ POL::tok (struct token_st *token)
 {
   if (token->ready == false)
     getpol_tok(token);
-  else
+  else {
     if (token->type == TT_EOF && lookchar() != EOF)
       getpol_tok(token);
-    return (token->type);
+  }
+  return (token->type);
 }
 
 void
@@ -821,7 +820,7 @@ POL::type (int c)
 */
 
 void
-POL::usefile (int source, char *fn)
+POL::usefile (int source, const char *fn)
 {
   FILE *fp;