Commit 0059efa4 authored by Alessandro Rubini's avatar Alessandro Rubini Committed by Aurelio Colosimo

trivial: fix names of protection macros

parent d4055e0d
......@@ -3,8 +3,8 @@
* Based on PTPd project v. 2.1.0 (see AUTHORS for details)
*/
#ifndef __PTP_CONSTANTS_H__
#define __PTP_CONSTANTS_H__
#ifndef __PPTP_CONSTANTS_H__
#define __PPTP_CONSTANTS_H__
/* general purpose constants */
#define PP_NSEC_PER_SEC (1000*1000*1000)
......@@ -87,4 +87,4 @@
#define PP_PEER_MACADDRESS "\x01\x80\xC2\x00\x00\x0E"
#endif /* __PTP_CONSTANTS_H__ */
#endif /* __PPTP_CONSTANTS_H__ */
/*
* Alessandro Rubini for CERN, 2011 -- public domain
*/
#ifndef __PTP_DIAG_H__
#define __PTP_DIAG_H__
#ifndef __PPTP_DIAG_H__
#define __PPTP_DIAG_H__
#include <pptp/pptp.h>
/*
......@@ -34,4 +34,4 @@ extern int pp_vprintf(const char *fmt, va_list args)
extern int pp_vsprintf(char *buf, const char *, va_list)
__attribute__ ((format (printf, 2, 0)));
#endif /* __PTP_DIAG_H__ */
#endif /* __PPTP_DIAG_H__ */
/*
* Alessandro Rubini and Aurelio Colosimo for CERN, 2011 -- public domain
*/
#ifndef __PTP_LIB_H__
#define __PTP_LIB_H__
#ifndef __PPTP_LIB_H__
#define __PPTP_LIB_H__
#include <stdint.h>
/* We base on puts and a few more functions: each arch must have it */
......@@ -14,4 +14,4 @@ extern void *pp_memset(void *s, int c, int count);
extern uint32_t __div64_32(uint64_t *n, uint32_t base);
#endif /* __PTP_DEP_H__ */
#endif /* __PPTP_LIB_H__ */
......@@ -2,8 +2,8 @@
* Aurelio Colosimo for CERN, 2011 -- GNU LGPL v2.1 or later
*/
#ifndef __PTP_PROTO_H__
#define __PTP_PROTO_H__
#ifndef __PPTP_PPTP_H__
#define __PPTP_PPTP_H__
#include <stdint.h>
#include <stdarg.h>
......@@ -370,4 +370,4 @@ extern pp_action pp_initializing, pp_faulty, pp_disabled, pp_listening,
/* The engine */
extern int pp_state_machine(struct pp_instance *ppi, uint8_t *packet, int plen);
#endif /* __PTP_PROTO_H__ */
#endif /* __PPTP_PPTP_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