aboutsummaryrefslogtreecommitdiffstats
path: root/src/scvpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/scvpp')
-rw-r--r--src/scvpp/inc/scvpp/comm.h2
-rw-r--r--src/scvpp/src/comm.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/scvpp/inc/scvpp/comm.h b/src/scvpp/inc/scvpp/comm.h
index 3e6122e..da83fa7 100644
--- a/src/scvpp/inc/scvpp/comm.h
+++ b/src/scvpp/inc/scvpp/comm.h
@@ -196,7 +196,7 @@ api_name##_all_cb(vapi_ctx_t ctx, void *caller_ctx, vapi_error_e rv, bool is_las
int sc_aton(const char *cp, u8 * buf, size_t length);
char * sc_ntoa(const u8 * buf);
int sc_pton(int af, const char *cp, u8 * buf);
-char * sc_ntop(int af, const u8 * buf, char *addr);
+const char * sc_ntop(int af, const u8 * buf, char *addr);
/**
* @brief Function converts the u8 array from network byte order to host byte order.
diff --git a/src/scvpp/src/comm.c b/src/scvpp/src/comm.c
index 0169d0a..532ee1e 100644
--- a/src/scvpp/src/comm.c
+++ b/src/scvpp/src/comm.c
@@ -111,7 +111,7 @@ int sc_pton(int af, const char *cp, u8 * buf)
return 0;
}
-char* sc_ntop(int af, const u8 * buf, char *addr)
+const char* sc_ntop(int af, const u8 * buf, char *addr)
{
ARG_CHECK(NULL, buf);
ARG_CHECK(NULL, addr);