Commit 1762194e authored by Michal Privoznik's avatar Michal Privoznik

src: Fix header file defines

To avoid multiple includes, header files start with:

  #ifndef __SOMETHING__
  # define __SOMETHING__

Well, SOMETHING should be the file name, and there should be a
space after hash and before 'define'.
Signed-off-by: 's avatarMichal Privoznik <mprivozn@redhat.com>
Reviewed-by: 's avatarMartin Kletzander <mkletzan@redhat.com>
parent e52c5857
......@@ -20,8 +20,8 @@
* Author: Michal Privoznik <mprivozn@redhat.com>
*/
#ifndef LIBVIRTNOTIFICATIONS_H
#define LIBVIRTNOTIFICATIONS_H
#ifndef __LIBVIRT_NOTIFICATIONS_H__
# define __LIBVIRT_NOTIFICATIONS_H__
#include "libvirtSnmp.h"
......@@ -30,4 +30,4 @@
*/
int send_libvirtGuestNotif_trap(virDomainPtr dom);
#endif /* LIBVIRTNOTIFICATIONS_H */
#endif /* __LIBVIRT_NOTIFICATIONS_H__ */
......@@ -20,8 +20,8 @@
* Author: Michal Privoznik <mprivozn@redhat.com>
*/
#ifndef __VIR_SNMP_H__
#define __VIR_SNMP_H__
#ifndef __LIBVIRT_SNMP_H__
# define __LIBVIRT_SNMP_H__
/* standard libvirt includes */
#include <libvirt/libvirt.h>
......@@ -60,5 +60,5 @@ libvirtSnmpDestroy(unsigned char *uuid);
extern int
libvirtSnmpChangeState(unsigned char *uuid, int newstate, int oldstate);
#endif /* __VIR_SNMP_H__ */
#endif /* __LIBVIRT_SNMP_H__ */
......@@ -20,12 +20,12 @@
* Author: Michal Privoznik <mprivozn@redhat.com>
*/
#ifndef __VIR_SNMP_ERROR_H__
#define __VIR_SNMP_ERROR_H__
#ifndef __LIBVIRT_SNMP_ERROR_H__
# define __LIBVIRT_SNMP_ERROR_H__
#include <libvirt/libvirt.h>
#include <libvirt/virterror.h>
extern void printLibvirtError(const char *msg);
#endif
#endif /* __LIBVIRT_SNMP_ERROR_H__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment