diff options
author | unknown <marko@hundin.mysql.fi> | 2005-01-05 12:22:04 +0200 |
---|---|---|
committer | unknown <marko@hundin.mysql.fi> | 2005-01-05 12:22:04 +0200 |
commit | 0f8b518bee2fb0a6668095af90781688304cc85b (patch) | |
tree | 4a4546daaebeab6bcba0131b003b0892b0cfff5a /innobase/include/ut0ut.h | |
parent | 509554c3cd843d02d164fee351b36a5efa5c334e (diff) | |
download | mariadb-git-0f8b518bee2fb0a6668095af90781688304cc85b.tar.gz |
InnoDB: Fix compiler warnings and some bad formatting introduced
in ChangeSet@1.1721.48.1
innobase/include/ut0ut.h:
Add prototype for ut_usectime()
innobase/srv/srv0srv.c:
Fix some misformatted code.
Remove a compiler warning about possibly uninitialized variable
in srv_suspend_mysql_thread().
innobase/sync/sync0sync.c:
Remove a compiler warning about possibly uninitialized variable
in mutex_spin_wait().
innobase/ut/ut0ut.c:
Improve the documentation and formatting of ut_usectime().
Diffstat (limited to 'innobase/include/ut0ut.h')
-rw-r--r-- | innobase/include/ut0ut.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/innobase/include/ut0ut.h b/innobase/include/ut0ut.h index dee8785c9e7..8938957cd12 100644 --- a/innobase/include/ut0ut.h +++ b/innobase/include/ut0ut.h @@ -139,6 +139,14 @@ ib_time_t ut_time(void); /*=========*/ /************************************************************** +Returns system time. */ + +void +ut_usectime( +/*========*/ + ulint* sec, /* out: seconds since the Epoch */ + ulint* ms); /* out: microseconds since the Epoch+*sec */ +/************************************************************** Returns the difference of two times in seconds. */ double |