ref: d24610fe3813b800ee436dfe5a1121e39721c8f4
parent: 5c941ec346f2a0340b0f1dd5ae5635c95d7ef227
author: cinap_lenrek <[email protected]>
date: Fri Aug 21 19:38:56 EDT 2015
tapefs: remove dependency to <authsrv.h>
--- a/sys/src/cmd/tapefs/fs.c
+++ b/sys/src/cmd/tapefs/fs.c
@@ -1,6 +1,5 @@
#include <u.h>
#include <libc.h>
-#include <authsrv.h>
#include <fcall.h>
#include "tapefs.h"
@@ -75,7 +74,6 @@
Ram *r;
char *defmnt;
int p[2];
- char buf[TICKREQLEN];
fmtinstall('F', fcallfmt);
@@ -142,10 +140,8 @@
break;
default:
close(p[0]); /* don't deadlock if child fails */
- if(mount(p[1], -1, defmnt, MREPL|MCREATE, "") < 0) {
- sprint(buf, "mount on `%s' failed", defmnt);
- error(buf);
- }
+ if(mount(p[1], -1, defmnt, MREPL|MCREATE, "") < 0)
+ error("mount failed");
}
exits(0);
}