pidgin/pidgin
Clone
Summary
Browse
Changes
Graph
zephyr: Replace gettimeofday by GLib functions
2020-11-22, Elliott Sales de Andrade
6260f39c7c65
zephyr: Replace gettimeofday by GLib functions
* Use monotonic time for some timeouts.
* Use `g_get_real_time` instead of `gettimeofday` for remaining uses.
Testing Done:
Compile only
Reviewed at https://reviews.imfreedom.org/r/248/
/* This file is part of the Project Athena Zephyr Notification System.
* It contains source for the ZSetFD function.
*
* Created by: Robert French
*
* Copyright (c) 1987 by the Massachusetts Institute of Technology.
* For copying and distribution information, see the file
* "mit-copyright.h".
*/
#include
"internal.h"
Code_t
ZSetFD
(
int
fd
)
{
(
void
)
ZClosePort
();
__Zephyr_fd
=
fd
;
__Zephyr_open
=
0
;
return
(
ZERR_NONE
);
}