X-Git-Url: http://git.kpe.io/?p=wdq2wav.git;a=blobdiff_plain;f=wdq2wav.cpp;h=4a733e25d0d34a4f4e0bb8bc685a2ecc2d8f69a8;hp=326e8d4d270e5aadc8b990ec653a3fb59030edb7;hb=d80f5e22c25c10dd83977d64414835557d062660;hpb=c3fb0a2a8050d00a6b3edd41731cea3c2ef5886e diff --git a/wdq2wav.cpp b/wdq2wav.cpp index 326e8d4..4a733e2 100644 --- a/wdq2wav.cpp +++ b/wdq2wav.cpp @@ -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; }