replace 'ifndef define' to 'pragam once'
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
#ifndef _SESSION_MANAGER_H
|
||||
#define _SESSION_MANAGER_H
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
@@ -120,5 +119,3 @@ struct session_manager_stat *session_manager_stat(struct session_manager *mgr);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef _SESSION_POOL_H
|
||||
#define _SESSION_POOL_H
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
@@ -19,5 +18,3 @@ uint64_t session_pool_get_count(struct session_pool *pool);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef _SESSION_PRIV_H
|
||||
#define _SESSION_PRIV_H
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
@@ -161,5 +160,3 @@ int session_to_json(struct session *sess, char *buff, int size);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef _SESSION_TABLE_H
|
||||
#define _SESSION_TABLE_H
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
@@ -25,5 +24,3 @@ struct session *session_table_find_lru(struct session_table *table);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef _SESSION_TIMER_H
|
||||
#define _SESSION_TIMER_H
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
@@ -26,5 +25,3 @@ uint64_t session_timer_next_expire_interval(struct session_timer *timer);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef _SESSION_TRANSITION_H
|
||||
#define _SESSION_TRANSITION_H
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
@@ -43,5 +42,3 @@ void session_transition_log(struct session *sess, enum session_state curr_state,
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef _TEST_PACKETS_H
|
||||
#define _TEST_PACKETS_H
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
@@ -2701,5 +2700,3 @@ unsigned char tcp_out_of_order_pkt7[] = {
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user