mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
util: hash: use #pragma once in headers
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>
This commit is contained in:
parent
bd4ed5bd99
commit
00eadc38dc
src/util
@ -7,11 +7,9 @@
|
|||||||
* Copyright (C) 2000 Bjorn Reese and Daniel Veillard.
|
* Copyright (C) 2000 Bjorn Reese and Daniel Veillard.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef LIBVIRT_VIRHASH_H
|
#pragma once
|
||||||
# define LIBVIRT_VIRHASH_H
|
|
||||||
|
|
||||||
|
#include "virautoclean.h"
|
||||||
# include "virautoclean.h"
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The hash table.
|
* The hash table.
|
||||||
@ -198,5 +196,3 @@ void *virHashSearch(const virHashTable *table, virHashSearcher iter,
|
|||||||
void virHashValueFree(void *value, const void *name);
|
void virHashValueFree(void *value, const void *name);
|
||||||
|
|
||||||
VIR_DEFINE_AUTOPTR_FUNC(virHashTable, virHashFree);
|
VIR_DEFINE_AUTOPTR_FUNC(virHashTable, virHashFree);
|
||||||
|
|
||||||
#endif /* LIBVIRT_VIRHASH_H */
|
|
||||||
|
@ -25,12 +25,9 @@
|
|||||||
* clients can be both 64 or 32 bit at the same time.
|
* clients can be both 64 or 32 bit at the same time.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef LIBVIRT_VIRHASHCODE_H
|
#pragma once
|
||||||
# define LIBVIRT_VIRHASHCODE_H
|
|
||||||
|
|
||||||
# include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
uint32_t virHashCodeGen(const void *key, size_t len, uint32_t seed)
|
uint32_t virHashCodeGen(const void *key, size_t len, uint32_t seed)
|
||||||
ATTRIBUTE_NOINLINE;
|
ATTRIBUTE_NOINLINE;
|
||||||
|
|
||||||
#endif /* LIBVIRT_VIRHASHCODE_H */
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user