8000 switch to GETLONG · lethalbrains/arangodb@ee7ad9e · GitHub
[go: up one dir, main page]

Skip to content

Commit ee7ad9e

Browse files
committed
switch to GETLONG
1 parent d64bf2d commit ee7ad9e

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

lib/Rest/EndpointSrv.cpp

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -107,26 +107,26 @@ std::vector<SrvRecord> srvRecords(std::string specification) {
107107

108108
cp += n;
109109

110-
int type = _getshort(cp);
111-
cp += 2;
110+
int type;
111+
GETSHORT(type, cp);
112112

113-
int nclass = _getshort(cp);
114-
cp += 2;
113+
int nclass;
114+
GETSHORT(nclass, cp);
115115

116-
int ttl = _getlong(cp);
117-
cp += 4;
116+
int ttl;
117+
GETLONG(ttl, cp);
118118

119-
int dlen = _getshort(cp);
120-
cp += 2;
119+
int dlen;
120+
GETSHORT(dlen, cp);
121121

122-
int priority = _getshort(cp);
123-
cp += 2;
122+
int priority;
123+
GETSHORT(priority, cp);
124124

125-
int weight = _getshort(cp);
126-
cp += 2;
125+
int weight;
126+
GETSHORT(weight, cp);
127127

128-
int port = _getshort(cp);
129-
cp += 2;
128+
int port;
129+
GETSHORT(port, cp);
130130

131131
n = dn_expand(msg, eom, cp, (char*)hostbuf, 256);
132132

0 commit comments

Comments
 (0)
0