]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virfile.c: Remove some #endif comments
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 1 Sep 2020 12:23:32 +0000 (14:23 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 2 Sep 2020 08:28:10 +0000 (10:28 +0200)
There are couple of conditional #includes at the beginning of
virfile.c and they try to be nice and document #endifs. But they
are mostly wrong because either they have the condition in the
comment inverted or the comment refers to a different condition
than they belong to. Just remove the comments as these #includes
are single line mostly.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/virfile.c

index 09658c16234d6d3aa4ac6b3071ec162d7df54425..716bf6259313e24a2d79a002d6aaa8274f20f818 100644 (file)
 #include <fcntl.h>
 #ifndef WIN32
 # include <termios.h>
-#endif /* !WIN32 */
+#endif
 #ifdef HAVE_PTY_H
 /* Linux openpty */
 # include <pty.h>
-#endif /* !HAVE_PTY_H */
+#endif
 #ifdef HAVE_UTIL_H
 /* macOS openpty */
 # include <util.h>
-#endif /* !HAVE_LIBUTIL_H */
+#endif
 #ifdef HAVE_LIBUTIL_H
 /* FreeBSD openpty */
 # include <libutil.h>
-#endif /* !HAVE_LIBUTIL_H */
+#endif
 #include <sys/stat.h>
 #if defined(HAVE_SYS_MOUNT_H)
 # include <sys/mount.h>