Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 #include <errno.h> | |
| 2 #include <time.h> | |
| 3 | |
| 4 #include <irt_syscalls.h> | |
| 5 | |
| 6 #define SYSDEP_GETTIME \ | |
| 7 case CLOCK_REALTIME: \ | |
| 8 case CLOCK_MONOTONIC: \ | |
| 9 { \ | |
| 10 int result = __nacl_irt_clock_gettime (clock_id, tp); \ | |
| 11 if (result != 0) \ | |
| 12 { \ | |
|
Roland McGrath
2012/02/15 18:45:26
Indent block.
bsy
2012/02/15 19:33:29
Done.
| |
| 13 __set_errno (result); \ | |
| 14 retval = -1; \ | |
| 15 } \ | |
| 16 else \ | |
| 17 { \ | |
|
Roland McGrath
2012/02/15 18:45:26
Drop braces.
bsy
2012/02/15 19:33:29
Done.
| |
| 18 retval = 0; \ | |
| 19 } \ | |
| 20 } \ | |
| 21 break; | |
| 22 | |
| 23 #define HANDLED_REALTIME | |
| 24 | |
| 25 #include <sysdeps/unix/clock_gettime.c> | |
| OLD | NEW |