From e6b038456b2b740b7bc41accc36fa85839e79cc3 Mon Sep 17 00:00:00 2001 From: Nimish Jain Date: Tue, 4 Aug 2026 20:35:54 +0000 Subject: [PATCH] lib9p: fix compilation errors in example server Reviewed by: markj MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D58634 --- contrib/lib9p/example/Makefile | 2 +- contrib/lib9p/example/server.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/lib9p/example/Makefile b/contrib/lib9p/example/Makefile index 94b218099c34..ef508bc70756 100644 --- a/contrib/lib9p/example/Makefile +++ b/contrib/lib9p/example/Makefile @@ -5,6 +5,6 @@ MAN= CFLAGS= -pthread -g -O0 LDFLAGS=-L.. -LDADD= -lsbuf -l9p -lcasper -lcap_pwd -lcap_grp +LIBADD+=sbuf 9p casper cap_pwd cap_grp .include diff --git a/contrib/lib9p/example/server.c b/contrib/lib9p/example/server.c index 971c239c8526..eceba0f6c6ce 100644 --- a/contrib/lib9p/example/server.c +++ b/contrib/lib9p/example/server.c @@ -39,8 +39,8 @@ main(int argc, char **argv) { struct l9p_backend *fs_backend; struct l9p_server *server; - char *host = "0.0.0.0"; - char *port = "564"; + const char *host = "0.0.0.0"; + const char *port = "564"; char *path; bool ro = false; int rootfd;