[dv/dpi] Add some missing static qualifiers
Signed-off-by: Tom Roberts <tomroberts@lowrisc.org>
diff --git a/hw/dv/dpi/common/tcp_server/tcp_server.c b/hw/dv/dpi/common/tcp_server/tcp_server.c
index cde6cb4..1caf2f8 100644
--- a/hw/dv/dpi/common/tcp_server/tcp_server.c
+++ b/hw/dv/dpi/common/tcp_server/tcp_server.c
@@ -212,7 +212,7 @@
*
* @param ctx context object
*/
-void stop(struct tcp_server_ctx *ctx) {
+static void stop(struct tcp_server_ctx *ctx) {
assert(ctx);
if (!ctx->sfd) {
return;
@@ -260,7 +260,7 @@
* @param ctx context object
* @param cmd byte to send
*/
-void put_byte(struct tcp_server_ctx *ctx, char cmd) {
+static void put_byte(struct tcp_server_ctx *ctx, char cmd) {
while (1) {
ssize_t num_written = send(ctx->cfd, &cmd, sizeof(cmd), MSG_NOSIGNAL);
if (num_written == -1) {
@@ -304,7 +304,7 @@
* @param ctx_void context object
* @return Always returns NULL
*/
-void *server_create(void *ctx_void) {
+static void *server_create(void *ctx_void) {
// Cast to a server struct
struct tcp_server_ctx *ctx = (struct tcp_server_ctx *)ctx_void;
struct timeval timeout;