diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2013-05-15 15:48:59 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2013-05-15 18:56:01 -0700 |
commit | fd00d50574064db9edfcccc4286ed8f1b55b185a (patch) | |
tree | 83119340636346a6b7b3d455bae559a9edbe7714 /src/common/utils.cpp | |
parent | 6ffe0682ab798155129f53b768cb881eac730a1f (diff) | |
download | tmwa-fd00d50574064db9edfcccc4286ed8f1b55b185a.tar.gz tmwa-fd00d50574064db9edfcccc4286ed8f1b55b185a.tar.bz2 tmwa-fd00d50574064db9edfcccc4286ed8f1b55b185a.tar.xz tmwa-fd00d50574064db9edfcccc4286ed8f1b55b185a.zip |
Alter memory management in login server
Diffstat (limited to 'src/common/utils.cpp')
-rw-r--r-- | src/common/utils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/utils.cpp b/src/common/utils.cpp index 49dce34..e3867eb 100644 --- a/src/common/utils.cpp +++ b/src/common/utils.cpp @@ -125,7 +125,7 @@ bool split_key_value(const std::string& line, std::string *w1, std::string *w2) static_assert(sizeof(timestamp_seconds_buffer) == 20, "seconds buffer"); static_assert(sizeof(timestamp_milliseconds_buffer) == 24, "millis buffer"); -void stamp_time(timestamp_seconds_buffer& out, TimeT *t) +void stamp_time(timestamp_seconds_buffer& out, const TimeT *t) { struct tm when = t ? *t : TimeT::now(); strftime(out, 20, "%Y-%m-%d %H:%M:%S", &when); |