소스 검색

fixed include guards to be valid c

cecylia 6 년 전
부모
커밋
0cc345a1f6
7개의 변경된 파일15개의 추가작업 그리고 15개의 파일을 삭제
  1. 2 2
      relay_station/crypto.h
  2. 2 2
      relay_station/cryptothread.h
  3. 2 2
      relay_station/flow.h
  4. 2 2
      relay_station/ptwist.h
  5. 2 2
      relay_station/relay.h
  6. 2 2
      relay_station/slitheen.h
  7. 3 3
      relay_station/util.h

+ 2 - 2
relay_station/crypto.h

@@ -25,8 +25,8 @@
  * work.
  */
 
-#ifndef _CRYPTO_H_
-#define _CRYPTO_H_
+#ifndef CRYPTO_H
+#define CRYPTO_H
 
 #include "flow.h"
 #include "ptwist.h"

+ 2 - 2
relay_station/cryptothread.h

@@ -25,8 +25,8 @@
  * work.
  */
 
-#ifndef _CRYPTOTHREAD_H_
-#define _CRYPTOTHREAD_H_
+#ifndef CRYPTOTHREAD_H
+#define CRYPTOTHREAD_H
 
 #include <openssl/crypto.h>
 void init_crypto_locks(void);

+ 2 - 2
relay_station/flow.h

@@ -25,8 +25,8 @@
  * for the parts of the OpenSSL library used as well as that of the covered
  * work.
  */
-#ifndef __RELAY_H__
-#define __RELAY_H__
+#ifndef FLOW_H
+#define FLOW_H
 
 #include <netinet/in.h>
 #include <semaphore.h>

+ 2 - 2
relay_station/ptwist.h

@@ -25,8 +25,8 @@
  * for the parts of the OpenSSL library used as well as that of the covered
  * work.
  */
-#ifndef __PTWIST_H__
-#define __PTWIST_H__
+#ifndef PTWIST_H
+#define PTWIST_H
 
 #define PTWIST_BITS 168  /* must be a multiple of 8 */
 #define PTWIST_BYTES (PTWIST_BITS/8)

+ 2 - 2
relay_station/relay.h

@@ -25,8 +25,8 @@
  * for the parts of the OpenSSL library used as well as that of the covered
  * work.
  */
-#ifndef _RELAY_H_
-#define _RELAY_H_
+#ifndef RELAY_H
+#define RELAY_H
 
 #include "flow.h"
 #include <stdint.h>

+ 2 - 2
relay_station/slitheen.h

@@ -25,8 +25,8 @@
  * for the parts of the OpenSSL library used as well as that of the covered
  * work.
  */
-#ifndef _SLITHEEN_H_
-#define _SLITHEEN_H_
+#ifndef SLITHEEN_H
+#define SLITHEEN_H
 #include <stdlib.h>
 #include <netinet/in.h>
 #include <pcap.h>

+ 3 - 3
relay_station/util.h

@@ -1,4 +1,4 @@
-/* until.h
+/* util.h
  *
  * Wrapper functions and data structures
  *
@@ -29,8 +29,8 @@
  * work.
  */
 
-#ifndef _UTIL_H_
-#define _UTIL_H_
+#ifndef UTIL_H
+#define UTIL_H
 
 #include <stddef.h>
 #include <stdint.h>