summaryrefslogtreecommitdiffstats
path: root/daemon/guestfsd.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-11-09 15:14:53 +0100
committerJim Meyering <meyering@redhat.com>2009-11-09 20:19:42 +0100
commite645763007e7097c14c1c3ba94010f2e32e536bf (patch)
treef7e2aa71377411e49ef796b8a948a25a76f90063 /daemon/guestfsd.c
parentd710f768161fc9f78ed8243f2de948b65425c06e (diff)
downloadlibguestfs-e645763007e7097c14c1c3ba94010f2e32e536bf.tar.gz
libguestfs-e645763007e7097c14c1c3ba94010f2e32e536bf.tar.xz
libguestfs-e645763007e7097c14c1c3ba94010f2e32e536bf.zip
indent with spaces, not TABs
* HACKING: Expand indentation TABs. * configure.ac: Likewise. * daemon/daemon.h: Likewise. * daemon/guestfsd.c: Likewise. * fuse/guestmount.c: Likewise. * hivex/LICENSE: Likewise. * src/generator.ml: Likewise. * tools/virt-win-reg: Likewise.
Diffstat (limited to 'daemon/guestfsd.c')
-rw-r--r--daemon/guestfsd.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/daemon/guestfsd.c b/daemon/guestfsd.c
index b6c3c448..d16826f0 100644
--- a/daemon/guestfsd.c
+++ b/daemon/guestfsd.c
@@ -641,7 +641,7 @@ commandvf (char **stdoutput, char **stderror, int flags,
*/
int
commandrvf (char **stdoutput, char **stderror, int flags,
- char const* const *argv)
+ char const* const *argv)
{
int so_size = 0, se_size = 0;
int so_fd[2], se_fd[2];
@@ -746,19 +746,19 @@ commandrvf (char **stdoutput, char **stderror, int flags,
if (r == 0) { FD_CLR (se_fd[0], &rset); quit++; }
if (r > 0) {
- if (verbose)
- ignore_value (write (2, buf, r));
-
- if (stderror) {
- se_size += r;
- p = realloc (*stderror, se_size);
- if (p == NULL) {
- perror ("realloc");
- goto quit;
- }
- *stderror = p;
- memcpy (*stderror + se_size - r, buf, r);
- }
+ if (verbose)
+ ignore_value (write (2, buf, r));
+
+ if (stderror) {
+ se_size += r;
+ p = realloc (*stderror, se_size);
+ if (p == NULL) {
+ perror ("realloc");
+ goto quit;
+ }
+ *stderror = p;
+ memcpy (*stderror + se_size - r, buf, r);
+ }
}
}
}