r3826: Auto commit for Debian build
[wdq2wav.git] / wdq2wav.cpp
index 326e8d4d270e5aadc8b990ec653a3fb59030edb7..4a733e25d0d34a4f4e0bb8bc685a2ecc2d8f69a8 100644 (file)
@@ -16,7 +16,7 @@
 **   Need command line options for verbose and debug output
 **   Should comment the reading and writing of files to document the file formats
 **
-**  $Id: wdq2wav.cpp,v 1.2 2003/01/21 03:03:49 kevin Exp $
+**  $Id: wdq2wav.cpp,v 1.6 2003/01/21 03:06:59 kevin Exp $
 **
 **  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
@@ -38,13 +38,13 @@ static bool g_verbose = true;
 static bool g_debug = true;
 
 void
-error_msg (char *msg)
+error_msg (const char *msg)
 {
   fprintf (stderr, "%s\n",msg);
 }
 
 void
-info_msg (char* msg)
+info_msg (const char* msg)
 {
   fprintf (stdout, "%s\n", msg);
 }
@@ -73,7 +73,7 @@ main (int argc, char *argv[])
   if (*channel_endptr != 0) {
     std::ostringstream os;
     os << "Error: Channel " << argv[2] << " is not an integer";
-    error_str (os.str().c_str());
+    error_msg (os.str().c_str());
     usage();
     return(1);
   }
@@ -371,8 +371,8 @@ WavFile::WriteFile ()
     if ((m_fd = open (m_strFile.c_str(), O_WRONLY | O_TRUNC | O_CREAT, 
                      S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)) == 0) {
       std::ostringstream os;
-      os << "Error opening output file ", << m_strFile.c_str();
-      error_msg (os);
+      os << "Error opening output file " << m_strFile.c_str();
+      error_msg (os.str().c_str());
       return false;
     }