]> xenbits.xensource.com Git - libvirt.git/commitdiff
fdstream: Realign
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 8 Dec 2015 10:00:34 +0000 (11:00 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 1 Feb 2016 15:12:22 +0000 (16:12 +0100)
Some lines in this file are misaligned which fires up my OCD.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/fdstream.c

index b8ea86e435816d10f825501cf08f468f7029f628..a85cf9dd63217070888b283589ebe4c98dd4f448 100644 (file)
@@ -215,10 +215,10 @@ virFDStreamAddCallback(virStreamPtr st,
     }
 
     if ((fdst->watch = virEventAddHandle(fdst->fd,
-                                           events,
-                                           virFDStreamEvent,
-                                           st,
-                                           virFDStreamCallbackFree)) < 0) {
+                                         events,
+                                         virFDStreamEvent,
+                                         st,
+                                         virFDStreamCallbackFree)) < 0) {
         virReportError(VIR_ERR_INTERNAL_ERROR,
                        "%s", _("cannot register file watch on stream"));
         goto cleanup;
@@ -624,7 +624,7 @@ virFDStreamOpenFileInternal(virStreamPtr st,
      */
     if ((st->flags & VIR_STREAM_NONBLOCK) &&
         ((!S_ISCHR(sb.st_mode) &&
-         !S_ISFIFO(sb.st_mode)) || forceIOHelper)) {
+          !S_ISFIFO(sb.st_mode)) || forceIOHelper)) {
         int fds[2] = { -1, -1 };
 
         if ((oflags & O_ACCMODE) == O_RDWR) {