git: e6b038456b2b - main - lib9p: fix compilation errors in example server
Mark Johnston <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.cvs.src,gmane.os.freebsd.current.scm |
|---|---|
| Message-ID | <[email protected]> |
The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=e6b038456b2b740b7bc41accc36fa85839e79cc3 commit e6b038456b2b740b7bc41accc36fa85839e79cc3 Author: Nimish Jain <[email protected]> AuthorDate: 2026-08-04 20:35:54 +0000 Commit: Mark Johnston <[email protected]> CommitDate: 2026-08-05 13:09:08 +0000 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 <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;