Commit c94c3c5e authored by Rasmus Villemoes's avatar Rasmus Villemoes Committed by John W. Linville

ray_cs: Add include guards

The files ray_cs.h and rayctl.h both contain two thirds of what
appears to be an include guard using the macro name RAYLINK_H (both
lack the #define). Since RAYLINK_H is not defined anywhere, the
#ifndefs are confusing no-ops. Add proper include guards using
different macro names.
Signed-off-by: default avatarRasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent ecf47e9b
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
Written by Corey Thomas Written by Corey Thomas
*/ */
#ifndef RAYLINK_H #ifndef _RAY_CS_H_
#define _RAY_CS_H_
struct beacon_rx { struct beacon_rx {
struct mac_header mac; struct mac_header mac;
...@@ -69,4 +70,4 @@ typedef struct ray_dev_t { ...@@ -69,4 +70,4 @@ typedef struct ray_dev_t {
} ray_dev_t; } ray_dev_t;
/*****************************************************************************/ /*****************************************************************************/
#endif /* RAYLINK_H */ #endif /* _RAY_CS_H_ */
#ifndef RAYLINK_H #ifndef _RAYCTL_H_
#define _RAYCTL_H_
typedef unsigned char UCHAR; typedef unsigned char UCHAR;
...@@ -729,4 +730,4 @@ typedef struct snaphdr_t ...@@ -729,4 +730,4 @@ typedef struct snaphdr_t
#define RAY_IPX_TYPE 0x8137 #define RAY_IPX_TYPE 0x8137
#define APPLEARP_TYPE 0x80f3 #define APPLEARP_TYPE 0x80f3
/*****************************************************************************/ /*****************************************************************************/
#endif /* #ifndef RAYLINK_H */ #endif /* _RAYCTL_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