summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorliuxueli <[email protected]>2024-06-12 03:57:17 +0000
committerliuxueli <[email protected]>2024-06-12 03:57:17 +0000
commitb7cea7310183ceee9e1986684214cb5bbcb16c65 (patch)
tree2195c84d7d8108edd1b28cbe21aeddfcfb2148ef
parentb7d504620edb2a24b899fe85caa84c28a3ad8564 (diff)
Feature: replace define to pragam once
-rw-r--r--include/dns_decoder.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/dns_decoder.h b/include/dns_decoder.h
index be6c60c..92d8e98 100644
--- a/include/dns_decoder.h
+++ b/include/dns_decoder.h
@@ -8,8 +8,7 @@
***********************************************************************************************
*/
-#ifndef _DNS_DECODER_H_
-#define _DNS_DECODER_H_
+#pragma once
#ifdef __cplusplus
extern "C"
@@ -284,5 +283,3 @@ void dns_message_additional_resource_record_get0(struct dns_message *msg, struct
#ifdef __cplusplus
}
#endif
-
-#endif