X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/25a83a54414e01784d96f56769b3a576a5314bbc..2574a28cbf000603bc31f61593dbf061ff56c1d5:/projects/stargazer/plugins/other/smux/utils.h?ds=sidebyside diff --git a/projects/stargazer/plugins/other/smux/utils.h b/projects/stargazer/plugins/other/smux/utils.h index 27eb3bf1..66724e94 100644 --- a/projects/stargazer/plugins/other/smux/utils.h +++ b/projects/stargazer/plugins/other/smux/utils.h @@ -1,14 +1,15 @@ -#ifndef __UTILS_H__ -#define __UTILS_H__ - -#include +#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" +#pragma GCC diagnostic pop + +#include bool String2OI(const std::string & str, OBJECT_IDENTIFIER_t * oi); -std::string OI2String(OBJECT_IDENTIFIER_t * oi); bool SendOpenPDU(int fd); bool SendClosePDU(int fd); bool SendRReqPDU(int fd); @@ -18,5 +19,3 @@ bool SendGetResponseErrorPDU(int fd, const PDU_t * getRequest, int errorStatus, int errorIndex); - -#endif