aboutsummaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2017-05-08 22:05:51 +0200
committertomsmeding <tom.smeding@gmail.com>2017-05-08 22:06:26 +0200
commit886fc77026a2a805e5d166b2f87bd24720ad9ea4 (patch)
treeaae24239045be0634e3d11eadbd698cf2d7628a1 /command.c
parent3f1a68789d82fb55071e000efd61564fa4f2bc1f (diff)
server: Factor out make_timestamp() into util.c
Diffstat (limited to 'command.c')
-rw-r--r--command.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/command.c b/command.c
index 2695c93..b0b9a26 100644
--- a/command.c
+++ b/command.c
@@ -9,13 +9,7 @@
#include "db.h"
#include "net.h"
#include "user_data.h"
-
-
-static i64 make_timestamp(void){
- struct timeval tv;
- gettimeofday(&tv,NULL);
- return (i64)tv.tv_sec*1000000+tv.tv_usec;
-}
+#include "util.h"
static bool cmd_register(struct conn_data *data,const char *tag,const char **args){