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, master has been updated via 4a5f6e9c0502172948711721b8b455f0a0d0baec (commit) via 8399da4d8c0369435e60b0b1bd9cef99e34e558e (commit) from 223fd9830a04557d0efe63b9d3df692867532af0 (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/4a5f6e9c0502172948711721b8b455f0a0d0b...
commit 4a5f6e9c0502172948711721b8b455f0a0d0baec Author: Cyril Hrubis metan@ucw.cz Date: Sun Apr 7 10:34:29 2013 +0200
backends: FB: Remove invalid close()
The file descriptor is not open if open() has failed.
Signed-off-by: Cyril Hrubis metan@ucw.cz
diff --git a/libs/backends/GP_LinuxFB.c b/libs/backends/GP_LinuxFB.c index 38d9ae4..54516d9 100644 --- a/libs/backends/GP_LinuxFB.c +++ b/libs/backends/GP_LinuxFB.c @@ -92,7 +92,6 @@ static int allocate_console(struct fb_priv *fb, int flag) if (fd < 0) { GP_DEBUG(1, "Opening console %s failed: %s", buf, strerror(errno)); - close(fd); return -1; }
http://repo.or.cz/w/gfxprim.git/commit/8399da4d8c0369435e60b0b1bd9cef99e34e5...
commit 8399da4d8c0369435e60b0b1bd9cef99e34e558e Author: Cyril Hrubis metan@ucw.cz Date: Sun Apr 7 10:33:16 2013 +0200
backends: BackendInit: Don't set errno on all failures.
This makes possible to propagate the errno from backends.
Signed-off-by: Cyril Hrubis metan@ucw.cz
diff --git a/libs/backends/GP_BackendInit.c b/libs/backends/GP_BackendInit.c index 5ae1615..1234a1c 100644 --- a/libs/backends/GP_BackendInit.c +++ b/libs/backends/GP_BackendInit.c @@ -64,6 +64,7 @@ static int sdl_params_to_flags(const char *param, GP_Size *w, GP_Size *h, }
backend_sdl_help(help, "SDL: Invalid parameters"); + errno = EINVAL; return 1; }
@@ -181,6 +182,7 @@ static int x11_params_to_flags(const char *param, GP_Size *w, GP_Size *h, }
backend_x11_help(help, "X11: Invalid parameters"); + errno = EINVAL; return 1; }
@@ -284,9 +286,6 @@ static GP_Backend *init_backend(const char *name, char *params,
ret = backend_inits[i](params, caption, help);
- if (ret == NULL) - errno = EINVAL; - return ret; }
-----------------------------------------------------------------------
Summary of changes: libs/backends/GP_BackendInit.c | 5 ++--- libs/backends/GP_LinuxFB.c | 1 - 2 files changed, 2 insertions(+), 4 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.