summaryrefslogtreecommitdiff
path: root/lib/examples
diff options
context:
space:
mode:
Diffstat (limited to 'lib/examples')
-rw-r--r--lib/examples/blocking.c4
-rw-r--r--lib/examples/blocking.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/examples/blocking.c b/lib/examples/blocking.c
index 35650ea..b66eb64 100644
--- a/lib/examples/blocking.c
+++ b/lib/examples/blocking.c
@@ -7,7 +7,7 @@
#include "blocking.h"
struct rs_packet *
-next_packet (const struct rs_config *ctx, int fd)
+next_packet (const struct rs_handle *ctx, int fd)
{
uint8_t hdr[RS_HEADER_LEN];
uint8_t *buf;
@@ -44,7 +44,7 @@ next_packet (const struct rs_config *ctx, int fd)
}
int
-send_packet(const struct rs_config *ctx, int fd, struct rs_packet *p)
+send_packet(const struct rs_handle *ctx, int fd, struct rs_packet *p)
{
uint8_t *buf = NULL;
ssize_t n = -20; /* Arbitrary packet size -- a guess. */
diff --git a/lib/examples/blocking.h b/lib/examples/blocking.h
index 04a07a8..f91e6be 100644
--- a/lib/examples/blocking.h
+++ b/lib/examples/blocking.h
@@ -1,4 +1,4 @@
#include "libradsec-base.h"
-struct rs_packet *next_packet (const struct rs_config *ctx, int fd);
-int send_packet (const struct rs_config *ctx, int fd, struct rs_packet *p);
+struct rs_packet *next_packet (const struct rs_handle *ctx, int fd);
+int send_packet (const struct rs_handle *ctx, int fd, struct rs_packet *p);