From 4645edc712dc7f0b233ab279624bd4b299f218de Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 10 Feb 2014 13:27:44 +0100 Subject: Fix indentation --- src/pwgui/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pwgui/main.cpp b/src/pwgui/main.cpp index fa131b1..5dc2060 100644 --- a/src/pwgui/main.cpp +++ b/src/pwgui/main.cpp @@ -107,7 +107,7 @@ int main(int argc, char *argv[]) fprintf(stderr, "ERROR: Could not read print job from STDIN.\n"); remove(tmpfile); return CUPS_BACKEND_FAILED; - } + } if ((ret = write(fh, buffer, bytes)) != bytes) { fprintf(stderr, "ERROR: Could not write %d bytes to %s (wrote %d)\n", (int)bytes, tmpfile, (int)ret); remove(tmpfile); @@ -116,7 +116,7 @@ int main(int argc, char *argv[]) total += bytes; } close(fh); - fprintf(stderr, "ERROR: Read %d bytes from stdin.\n", total); + fprintf(stderr, "ERROR: Read %d bytes from stdin.\n", total); // } else { // File given, check if file exists @@ -260,7 +260,7 @@ static bool helper_getpiduid(char *user, char *title) snprintf(tmp, 100, "/proc/%d/environ", p); int fh = open(tmp, O_RDONLY); if (fh >= 0) { - char *ptr = gui_env; + char *ptr = gui_env; int bytes = 0, ret; while ((ret = read(fh, ptr, ENVLEN - (ptr - gui_env) - 2)) > 0) { bytes += ret; -- cgit v1.2.3-55-g7522