# HG changeset patch # User Matti Hamalainen # Date 1337824789 -10800 # Node ID 932829a556c79ec677ff157cd69ce4cccc5fdbb1 # Parent 07a46ca075abc40c8d59d2898054c839db3a5a85 Rename a function. diff -r 07a46ca075ab -r 932829a556c7 nnchat.c --- a/nnchat.c Thu May 24 04:58:43 2012 +0300 +++ b/nnchat.c Thu May 24 04:59:49 2012 +0300 @@ -204,7 +204,7 @@ return TRUE; } -BOOL getTimeStamp(char *str, size_t len, const char *fmt) +BOOL str_get_timestamp(char *str, size_t len, const char *fmt) { time_t stamp = time(NULL); struct tm *stamp_tm; @@ -281,7 +281,7 @@ if (statusWin == NULL) return; - getTimeStamp(tmpStr, sizeof(tmpStr), "%H:%M:%S"); + str_get_timestamp(tmpStr, sizeof(tmpStr), "%H:%M:%S"); wbkgdset(statusWin, COLOR_PAIR(10)); werase(statusWin); @@ -521,7 +521,7 @@ { char tmpStr[128], *buf; - getTimeStamp(tmpStr, sizeof(tmpStr), "½17½[½11½%H:%M:%S½17½]½0½ "); + str_get_timestamp(tmpStr, sizeof(tmpStr), "½17½[½11½%H:%M:%S½17½]½0½ "); buf = th_strdup_vprintf(fmt, ap); @@ -740,6 +740,7 @@ return 0; } + str_get_timestamp(tmpStr, sizeof(tmpStr), "%c"); int handleLogin(nn_conn_t *conn, const char *str) {