projects
/
trust_router.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use cast instead of talloc_get_type_abort for stack-allocated data
[trust_router.git]
/
tid
/
example
/
tidc_main.c
diff --git
a/tid/example/tidc_main.c
b/tid/example/tidc_main.c
index
8ae56ca
..
4ca3780
100644
(file)
--- a/
tid/example/tidc_main.c
+++ b/
tid/example/tidc_main.c
@@
-57,7
+57,7
@@
static void tidc_resp_handler (TIDC_INSTANCE * tidc,
unsigned char *c_keybuf = NULL;
int i;
struct timeval tv;
unsigned char *c_keybuf = NULL;
int i;
struct timeval tv;
- struct tidc_resp_cookie *data =
talloc_get_type_abort(cookie, struct tidc_resp_cookie)
;
+ struct tidc_resp_cookie *data =
(struct tidc_resp_cookie *) cookie
;
printf ("Response received! Realm = %s, Community = %s.\n", resp->realm->buf, resp->comm->buf);
printf ("Response received! Realm = %s, Community = %s.\n", resp->realm->buf, resp->comm->buf);