git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Radius (#7)
[stg.git]
/
projects
/
stargazer
/
plugins
/
other
/
smux
/
utils.h
diff --git
a/projects/stargazer/plugins/other/smux/utils.h
b/projects/stargazer/plugins/other/smux/utils.h
index 52a3988bb52a682e58c145dd01eda0f358247d2a..66724e941de2e867a0a0b18e5b7834842a100862 100644
(file)
--- a/
projects/stargazer/plugins/other/smux/utils.h
+++ b/
projects/stargazer/plugins/other/smux/utils.h
@@
-1,11
+1,13
@@
-#ifndef __UTILS_H__
-#define __UTILS_H__
-
-#include <string>
+#pragma once
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wold-style-cast"
#include "stg/OBJECT_IDENTIFIER.h"
#include "stg/SMUX-PDUs.h"
#include "stg/GetResponse-PDU.h"
#include "stg/OBJECT_IDENTIFIER.h"
#include "stg/SMUX-PDUs.h"
#include "stg/GetResponse-PDU.h"
+#pragma GCC diagnostic pop
+
+#include <string>
bool String2OI(const std::string & str, OBJECT_IDENTIFIER_t * oi);
bool SendOpenPDU(int fd);
bool String2OI(const std::string & str, OBJECT_IDENTIFIER_t * oi);
bool SendOpenPDU(int fd);
@@
-17,5
+19,3
@@
bool SendGetResponseErrorPDU(int fd,
const PDU_t * getRequest,
int errorStatus,
int errorIndex);
const PDU_t * getRequest,
int errorStatus,
int errorIndex);
-
-#endif