-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: hackvr
action: commit
revision:
path_from:
revision_from: 75ac7ceb90c98595bf0a6847619df52af7f2ef3f:
path_to:
revision_to:

git.thebackupbox.net

hackvr

git://git.thebackupbox.net/hackvr

commit 75ac7ceb90c98595bf0a6847619df52af7f2ef3f
Author: epoch <epoch@hacking.allowed.org>
Date:   Thu Feb 2 00:12:58 2017 -0600

    made graphics_init exit instead of return 2 when it fails to open X display

diff --git a/src/graphics_x11.c b/src/graphics_x11.c

index 983916980d0b9efb17643714eee89d6ab15b8d43..

index ..b939673a52bba67bde54d2d5ea4285eda78062da 100644

--- a/src/graphics_x11.c
+++ b/src/graphics_x11.c
@@ -281,7 +281,10 @@ int graphics_init() {
 // Window root,child;//why do I have this?
 //  XColor toss;
  printf("# Opening X Display... (%s)\n",getenv("DISPLAY"));
- if((x11_global.dpy = XOpenDisplay(0)) == NULL) return printf("# failure.\n"),2;
+ if((x11_global.dpy = XOpenDisplay(0)) == NULL) {
+  printf("# failure.\n");
+  exit(1);
+ }
  else printf("# done.\n");
  x11_global.color_map=DefaultColormap(x11_global.dpy, DefaultScreen(x11_global.dpy));
  printf("# generating grays...\n");

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 14:53:58 2024