Skip to content

Commit

Permalink
optimize: dzlog ->const
Browse files Browse the repository at this point in the history
  • Loading branch information
HardySimpson committed Jul 20, 2012
1 parent 68b5406 commit 0b55abe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions libzlog/zlog.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ int zlog_init(const char *confpath)
return -1;
}

int dzlog_init(char *confpath, char *cname)
int dzlog_init(const char *confpath, const char *cname)
{
int rc = 0;
zc_debug("------dzlog_init start, compile time[%s %s]------", __DATE__, __TIME__);
Expand Down Expand Up @@ -379,7 +379,7 @@ zlog_category_t *zlog_get_category(const char *cname)
return NULL;
}

int dzlog_set_category(char *cname)
int dzlog_set_category(const char *cname)
{
int rc = 0;
zc_assert(cname, -1);
Expand Down
4 changes: 2 additions & 2 deletions libzlog/zlog.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ void hzlog(zlog_category_t * category,
long line, int level,
const void *buf, size_t buflen);

int dzlog_init(char *confpath, char *cname);
int dzlog_set_category(char *cname);
int dzlog_init(const char *confpath, const char *cname);
int dzlog_set_category(const char *cname);

void dzlog(const char *file, size_t filelen,
const char *func, size_t funclen,
Expand Down

0 comments on commit 0b55abe

Please sign in to comment.