]> xenbits.xensource.com Git - libvirt.git/commitdiff
util: hash: use #pragma once in headers
authorJonathon Jongsma <jjongsma@redhat.com>
Tue, 18 Jun 2019 16:12:59 +0000 (11:12 -0500)
committerJán Tomko <jtomko@redhat.com>
Wed, 19 Jun 2019 15:12:32 +0000 (17:12 +0200)
Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
src/util/virhash.h
src/util/virhashcode.h

index d2156a5ce09288760a9b5fdbcb4321ad1b6be0c9..ed3774e693b8a4875b53ecf08476478e9def5374 100644 (file)
@@ -7,11 +7,9 @@
  * Copyright (C) 2000 Bjorn Reese and Daniel Veillard.
  */
 
-#ifndef LIBVIRT_VIRHASH_H
-# define LIBVIRT_VIRHASH_H
+#pragma once
 
-
-# include "virautoclean.h"
+#include "virautoclean.h"
 
 /*
  * The hash table.
@@ -198,5 +196,3 @@ void *virHashSearch(const virHashTable *table, virHashSearcher iter,
 void virHashValueFree(void *value, const void *name);
 
 VIR_DEFINE_AUTOPTR_FUNC(virHashTable, virHashFree);
-
-#endif /* LIBVIRT_VIRHASH_H */
index e512e04bac661f1b2f18addd86f643e3bf1a0e3b..af877c93ccff74a124ca8ede060e110e73a4bf20 100644 (file)
  * clients can be both 64 or 32 bit at the same time.
  */
 
-#ifndef LIBVIRT_VIRHASHCODE_H
-# define LIBVIRT_VIRHASHCODE_H
+#pragma once
 
-# include "internal.h"
+#include "internal.h"
 
 uint32_t virHashCodeGen(const void *key, size_t len, uint32_t seed)
     ATTRIBUTE_NOINLINE;
-
-#endif /* LIBVIRT_VIRHASHCODE_H */