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;