diff options
author | Simon Rettberg | 2014-02-10 13:27:44 +0100 |
---|---|---|
committer | Simon Rettberg | 2014-02-10 13:27:44 +0100 |
commit | 4645edc712dc7f0b233ab279624bd4b299f218de (patch) | |
tree | 6522cb28e48c81e040b13a72ff877d6505282a77 | |
parent | Fix reading from stdin. fread sucks. (diff) | |
download | printergui-4645edc712dc7f0b233ab279624bd4b299f218de.tar.gz printergui-4645edc712dc7f0b233ab279624bd4b299f218de.tar.xz printergui-4645edc712dc7f0b233ab279624bd4b299f218de.zip |
Fix indentation
-rw-r--r-- | src/pwgui/main.cpp | 6 |
1 files 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; |