This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project gfxprim.git.
The branch, generate has been updated via 7d1c1b2c4aeef95941109cbdc5707eff6ad0a36f (commit) from c8554f3ed96486d4ef20838b260c369f61c61b3c (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- http://repo.or.cz/w/gfxprim.git/commit/7d1c1b2c4aeef95941109cbdc5707eff6ad0a...
commit 7d1c1b2c4aeef95941109cbdc5707eff6ad0a36f Author: Cyril Hrubis metan@ucw.cz Date: Tue Oct 25 16:08:45 2011 +0000
fbshow: fix timeval reinitalization.
diff --git a/demos/fbshow/fbshow.c b/demos/fbshow/fbshow.c index e6c6212..76dcb99 100644 --- a/demos/fbshow/fbshow.c +++ b/demos/fbshow/fbshow.c @@ -143,13 +143,16 @@ int main(int argc, char *argv[]) FD_ZERO(&rfds); FD_SET(drv->fd, &rfds); struct timeval tv = {.tv_sec = sleep_sec, .tv_usec = 0}; + struct timeval *tvp = sleep_sec ? &tv : NULL;
for (;;) { int ret;
if (drv != NULL) { - ret = select(drv->fd + 1, &rfds, NULL, NULL, &tv); - + ret = select(drv->fd + 1, &rfds, NULL, NULL, tvp); + + tv.tv_sec = sleep_sec; + switch (ret) { case -1: GP_FramebufferExit(fb);
-----------------------------------------------------------------------
Summary of changes: demos/fbshow/fbshow.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos@gmail.com if you want to unsubscribe, or site admin admin@repo.or.cz if you receive no reply.