Permalink
Browse files

Make cliplogcvt function arguments const where possible

Make it clear which strings are read-only.

Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
  • Loading branch information...
stefanha committed May 10, 2014
1 parent 2adeef2 commit 9a6c29f2835eab198f70572e4ffa5e0ef905ad1c
Showing with 2 additions and 2 deletions.
  1. +2 −2 cliplogcvt/cliplogcvt.cpp
@@ -51,7 +51,7 @@ class UserChannelList
#define DIRCHAR '/'
#define DIRCHAR_S "/"
int resolveFile(const char *name, std::string &outpath, char *path)
int resolveFile(const char *name, std::string &outpath, const char *path)
{
const char *p=name;
while (*p && *p == '0') p++;
@@ -120,7 +120,7 @@ void usage()
std::string g_concatdir;
void WriteOutTrack(char *chname, UserChannelList *list, int *track_id, char *path)
void WriteOutTrack(const char *chname, UserChannelList *list, int *track_id, const char *path)
{
int y;
FILE *concatout=NULL;

0 comments on commit 9a6c29f

Please sign in to comment.