CHANGE declare arguments as const if they are not changed
to extend usability of nc_difftimespec() without compiler warnings
diff --git a/src/session.c b/src/session.c
index fbafc8f..fcb6e40 100644
--- a/src/session.c
+++ b/src/session.c
@@ -68,7 +68,7 @@
/* ts1 < ts2 -> +, ts1 > ts2 -> -, returns milliseconds */
int32_t
-nc_difftimespec(struct timespec *ts1, struct timespec *ts2)
+nc_difftimespec(const struct timespec *ts1, const struct timespec *ts2)
{
int64_t nsec_diff = 0;
diff --git a/src/session_p.h b/src/session_p.h
index aa51bc3..d051e6d 100644
--- a/src/session_p.h
+++ b/src/session_p.h
@@ -452,7 +452,7 @@
int nc_gettimespec(struct timespec *ts);
-int32_t nc_difftimespec(struct timespec *ts1, struct timespec *ts2);
+int32_t nc_difftimespec(const struct timespec *ts1, const struct timespec *ts2);
void nc_addtimespec(struct timespec *ts, uint32_t msec);