git: 9c13f8c47333 - stable/15 - lib9p: fix compilation errors in example server
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 17 Aug 2026 12:10:20 UTC
The branch stable/15 has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=9c13f8c473333653aa83c56e37ea109e11d2b14c
commit 9c13f8c473333653aa83c56e37ea109e11d2b14c
Author: Nimish Jain <njain15@protonmail.com>
AuthorDate: 2026-08-04 20:35:54 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2026-08-17 12:07:41 +0000
lib9p: fix compilation errors in example server
Reviewed by: markj
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D58634
(cherry picked from commit e6b038456b2b740b7bc41accc36fa85839e79cc3)
---
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 <bsd.prog.mk>
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;