summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/ouroboros/dev.h10
-rw-r--r--src/lib/dev.c10
2 files changed, 10 insertions, 10 deletions
diff --git a/include/ouroboros/dev.h b/include/ouroboros/dev.h
index 4984736c..31c681db 100644
--- a/include/ouroboros/dev.h
+++ b/include/ouroboros/dev.h
@@ -35,13 +35,13 @@ int ap_init(const char * ap_name);
void ap_fini(void);
/* Returns flow descriptor, qs updates to supplied QoS. */
-int flow_alloc(const char * dst_name,
- qosspec_t * qs,
- struct timespec * timeo);
+int flow_alloc(const char * dst_name,
+ qosspec_t * qs,
+ const struct timespec * timeo);
/* Returns flow descriptor, qs updates to supplied QoS. */
-int flow_accept(qosspec_t * qs,
- struct timespec * timeo);
+int flow_accept(qosspec_t * qs,
+ const struct timespec * timeo);
int flow_dealloc(int fd);
diff --git a/src/lib/dev.c b/src/lib/dev.c
index 389ff278..7cd6fdce 100644
--- a/src/lib/dev.c
+++ b/src/lib/dev.c
@@ -381,8 +381,8 @@ void ap_fini()
pthread_rwlock_destroy(&ai.data_lock);
}
-int flow_accept(qosspec_t * qs,
- struct timespec * timeo)
+int flow_accept(qosspec_t * qs,
+ const struct timespec * timeo)
{
irm_msg_t msg = IRM_MSG__INIT;
irm_msg_t * recv_msg = NULL;
@@ -485,9 +485,9 @@ int flow_accept(qosspec_t * qs,
return fd;
}
-int flow_alloc(const char * dst_name,
- qosspec_t * qs,
- struct timespec * timeo)
+int flow_alloc(const char * dst_name,
+ qosspec_t * qs,
+ const struct timespec * timeo)
{
irm_msg_t msg = IRM_MSG__INIT;
irm_msg_t * recv_msg = NULL;