diff mbox series

[6/6] vircgrouppriv.h: Use #pragma once

Message ID 0ac0824c77505640d4c4f07972b1ede348c74387.1554328223.git.crobinso@redhat.com
State Accepted
Commit ce5346292a8e3a2946c915684d5f13e77f937b7a
Headers show
Series Some '#pragma once' conversions | expand

Commit Message

Cole Robinson April 3, 2019, 9:52 p.m. UTC
Signed-off-by: Cole Robinson <crobinso@redhat.com>

---
 src/util/vircgrouppriv.h | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

-- 
2.21.0

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
diff mbox series

Patch

diff --git a/src/util/vircgrouppriv.h b/src/util/vircgrouppriv.h
index a6fb3bb9f8..9110c77297 100644
--- a/src/util/vircgrouppriv.h
+++ b/src/util/vircgrouppriv.h
@@ -23,11 +23,10 @@ 
 # error "vircgrouppriv.h may only be included by vircgroup.c or its test suite"
 #endif /* LIBVIRT_VIRCGROUPPRIV_H_ALLOW */
 
-#ifndef LIBVIRT_VIRCGROUPPRIV_H
-# define LIBVIRT_VIRCGROUPPRIV_H
+#pragma once
 
-# include "vircgroup.h"
-# include "vircgroupbackend.h"
+#include "vircgroup.h"
+#include "vircgroupbackend.h"
 
 struct _virCgroupV1Controller {
     int type;
@@ -127,5 +126,3 @@  int virCgroupKillRecursiveInternal(virCgroupPtr group,
                                    int controller,
                                    const char *taskFile,
                                    bool dormdir);
-
-#endif /* LIBVIRT_VIRCGROUPPRIV_H */