changeset 397:932829a556c7

Rename a function.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 24 May 2012 04:59:49 +0300
parents 07a46ca075ab
children c345a8efb1d4
files nnchat.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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)
 {