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. (#8)
[stg.git]
/
projects
/
stargazer
/
plugins
/
other
/
smux
/
utils.cpp
diff --git
a/projects/stargazer/plugins/other/smux/utils.cpp
b/projects/stargazer/plugins/other/smux/utils.cpp
index a2c1a47f0943fe56114d491916d902f16af72167..d1a0c281a585dec96f34d532bba0e0338f60b1c2 100644
(file)
--- a/
projects/stargazer/plugins/other/smux/utils.cpp
+++ b/
projects/stargazer/plugins/other/smux/utils.cpp
@@
-20,7
+20,7
@@
bool String2OI(const std::string & str, OBJECT_IDENTIFIER_t * oi)
{
size_t left = 0, pos = 0, arcPos = 0;
bool String2OI(const std::string & str, OBJECT_IDENTIFIER_t * oi)
{
size_t left = 0, pos = 0, arcPos = 0;
-
in
t arcs[1024];
+
uint32_
t arcs[1024];
pos = str.find_first_of('.', left);
if (pos == 0)
{
pos = str.find_first_of('.', left);
if (pos == 0)
{
@@
-47,7
+47,7
@@
if (left < str.length())
}
arcs[arcPos++] = arc;
}
}
arcs[arcPos++] = arc;
}
-OBJECT_IDENTIFIER_set_arcs(oi, arcs, s
izeof(arcs[0]), s
tatic_cast<unsigned int>(arcPos));
+OBJECT_IDENTIFIER_set_arcs(oi, arcs, static_cast<unsigned int>(arcPos));
return true;
}
return true;
}
@@
-125,7
+125,7
@@
return true;
bool SendRReqPDU(int fd)
{
bool SendRReqPDU(int fd)
{
-
in
t oid[] = {1, 3, 6, 1, 4, 1, 38313, 1};
+
uint32_
t oid[] = {1, 3, 6, 1, 4, 1, 38313, 1};
asn_enc_rval_t error;
RReqPDU_t msg;
asn_enc_rval_t error;
RReqPDU_t msg;
@@
-135,7
+135,6
@@
msg.priority = 0;
asn_long2INTEGER(&msg.operation, RReqPDU__operation_readOnly);
OBJECT_IDENTIFIER_set_arcs(&msg.subtree,
oid,
asn_long2INTEGER(&msg.operation, RReqPDU__operation_readOnly);
OBJECT_IDENTIFIER_set_arcs(&msg.subtree,
oid,
- sizeof(oid[0]),
8);
char buffer[1024];
8);
char buffer[1024];