Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libcurses Round timeout values up.
details: https://anonhg.NetBSD.org/src/rev/8184926e9f79
branches: trunk
changeset: 748764:8184926e9f79
user: dsl <dsl%NetBSD.org@localhost>
date: Wed Nov 04 21:24:57 2009 +0000
description:
Round timeout values up.
More importantly convert 1..99 to 1, not 0.
diffstat:
lib/libcurses/timeout.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r 8a2ba397e3a8 -r 8184926e9f79 lib/libcurses/timeout.c
--- a/lib/libcurses/timeout.c Wed Nov 04 21:23:02 2009 +0000
+++ b/lib/libcurses/timeout.c Wed Nov 04 21:24:57 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: timeout.c,v 1.7 2008/04/28 20:23:01 martin Exp $ */
+/* $NetBSD: timeout.c,v 1.8 2009/11/04 21:24:57 dsl Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: timeout.c,v 1.7 2008/04/28 20:23:01 martin Exp $");
+__RCSID("$NetBSD: timeout.c,v 1.8 2009/11/04 21:24:57 dsl Exp $");
#endif /* not lint */
#include "curses.h"
@@ -71,6 +71,6 @@
if (delay > 25500)
win->delay = 255;
else
- win->delay = delay / 100;
+ win->delay = (delay - 1)/ 100 + 1;
}
}
Home |
Main Index |
Thread Index |
Old Index