Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/librumpuser fix clock_gettime emulation



details:   https://anonhg.NetBSD.org/src/rev/600499b5fb00
branches:  trunk
changeset: 333462:600499b5fb00
user:      pooka <pooka%NetBSD.org@localhost>
date:      Wed Nov 05 01:37:27 2014 +0000

description:
fix clock_gettime emulation

diffstat:

 lib/librumpuser/rumpuser_port.h |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 9112c4edb176 -r 600499b5fb00 lib/librumpuser/rumpuser_port.h
--- a/lib/librumpuser/rumpuser_port.h   Wed Nov 05 01:15:58 2014 +0000
+++ b/lib/librumpuser/rumpuser_port.h   Wed Nov 05 01:37:27 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rumpuser_port.h,v 1.38 2014/11/05 01:15:58 pooka Exp $ */
+/*     $NetBSD: rumpuser_port.h,v 1.39 2014/11/05 01:37:27 pooka Exp $ */
 
 #ifndef _LIB_LIBRUMPUSER_RUMPUSER_PORT_H_
 #define _LIB_LIBRUMPUSER_RUMPUSER_PORT_H_
@@ -123,6 +123,7 @@
        if (gettimeofday(&tv, 0) == 0) {
                ts->tv_sec = tv.tv_sec;
                ts->tv_nsec = tv.tv_usec * 1000;
+               return 0;
        }
        return -1;
 }



Home | Main Index | Thread Index | Old Index