remove double newlines from errx() - xscreenshot - screen capture tool | |
git clone git://git.codemadness.org/xscreenshot | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit f6e5f87ec62d886c4acd7b3bd77adf5801242f03 | |
parent 895ec4bf5e0ff2ff52e27d62a88f7927d8fc470c | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Thu, 25 Feb 2016 20:34:41 +0100 | |
remove double newlines from errx() | |
Diffstat: | |
M xscreenshot.c | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/xscreenshot.c b/xscreenshot.c | |
@@ -54,7 +54,7 @@ main(int argc, char *argv[]) | |
XUngrabServer(dpy); | |
XCloseDisplay(dpy); | |
if (!img) | |
- errx(1, "XGetImage\n"); | |
+ errx(1, "XGetImage"); | |
switch (img->bits_per_pixel) { | |
case 16: /* only 5-6-5 format supported */ | |
@@ -70,7 +70,7 @@ main(int argc, char *argv[]) | |
fr = fg = fb = 257; | |
break; | |
default: | |
- errx(1, "unsupported bpp: %d\n", img->bits_per_pixel); | |
+ errx(1, "unsupported bpp: %d", img->bits_per_pixel); | |
} | |
/* write header with big endian width and height-values */ |