Skip to content

Commit 6eb5015

Browse files
author
Oscar Novo
committedJul 19, 2016
remove a function function to fetch the result of a pcp_request function. It was not needed
1 parent a05dc06 commit 6eb5015

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed
 

‎include/re_pcp.h

-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ int request_result;/* Outcome of the request */
146146

147147
typedef void (pcp_resp_h)(int err, struct pcp_msg *msg, void *arg);
148148

149-
int is_request_no_authorized(void);
150149
int pcp_request(struct pcp_request **reqp, const struct pcp_conf *conf,
151150
const struct sa *pcp_server, enum pcp_opcode opcode,
152151
uint32_t lifetime, const void *payload,

‎src/pcp/request.c

+1-7
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#include <re_pcp.h>
1717
#include "pcp.h"
1818

19-
2019
/*
2120
* Defines a PCP client request
2221
*
@@ -154,11 +153,6 @@ static void timeout(void *arg)
154153
tmr_start(&req->tmr, req->RT * 1000, timeout, req);
155154
}
156155

157-
int is_request_no_authorized(void)
158-
{
159-
return (request_result);
160-
}
161-
162156
static void timeout_duration(void *arg)
163157
{
164158
struct pcp_request *req = arg;
@@ -321,7 +315,6 @@ static int pcp_vrequest(struct pcp_request **reqp, const struct pcp_conf *conf,
321315
return err;
322316
}
323317

324-
325318
int pcp_request(struct pcp_request **reqp, const struct pcp_conf *conf,
326319
const struct sa *srv, enum pcp_opcode opcode,
327320
uint32_t lifetime, const void *payload,
@@ -332,6 +325,7 @@ int pcp_request(struct pcp_request **reqp, const struct pcp_conf *conf,
332325
request_result = 0;
333326

334327
va_start(ap, optionc);
328+
335329
err = pcp_vrequest(reqp, conf, srv, opcode, lifetime, payload,
336330
resph, arg, optionc, ap);
337331
va_end(ap);

0 commit comments

Comments
 (0)
Please sign in to comment.