diff options
author | ftrvxmtrx <ftrvxmtrx@gmail.com> | 2016-11-17 02:59:40 +0100 |
---|---|---|
committer | ftrvxmtrx <ftrvxmtrx@gmail.com> | 2016-11-17 02:59:40 +0100 |
commit | 0930f44febd25c27fb717e7323686e50c4fa0593 (patch) | |
tree | 397b0b732b628164fb078bdbe011a6ae453452a2 /sys/src/cmd/9nfs | |
parent | c0d0f86b14593bbf608284b96920558756a69304 (diff) |
cmd: remove a bit of unused stuff
Diffstat (limited to 'sys/src/cmd/9nfs')
-rw-r--r-- | sys/src/cmd/9nfs/authhostowner.c | 21 | ||||
-rw-r--r-- | sys/src/cmd/9nfs/nfsmount.c | 12 | ||||
-rw-r--r-- | sys/src/cmd/9nfs/server.c | 7 |
3 files changed, 0 insertions, 40 deletions
diff --git a/sys/src/cmd/9nfs/authhostowner.c b/sys/src/cmd/9nfs/authhostowner.c index e91f0030b..c3b747139 100644 --- a/sys/src/cmd/9nfs/authhostowner.c +++ b/sys/src/cmd/9nfs/authhostowner.c @@ -46,27 +46,6 @@ gcarray(uchar *p, uchar *ep, uchar **s, int *np) return p; } -static uchar* -convM2AI(uchar *p, int n, AuthInfo **aip) -{ - uchar *e = p+n; - AuthInfo *ai; - - ai = mallocz(sizeof(*ai), 1); - if(ai == nil) - return nil; - - p = gstring(p, e, &ai->cuid); - p = gstring(p, e, &ai->suid); - p = gstring(p, e, &ai->cap); - p = gcarray(p, e, &ai->secret, &ai->nsecret); - if(p == nil) - auth_freeAI(ai); - else - *aip = ai; - return p; -} - static int dorpc(AuthRpc *rpc, char *verb, char *val, int len, AuthGetkey *getkey) { diff --git a/sys/src/cmd/9nfs/nfsmount.c b/sys/src/cmd/9nfs/nfsmount.c index 6f0e67b39..3d9e1090a 100644 --- a/sys/src/cmd/9nfs/nfsmount.c +++ b/sys/src/cmd/9nfs/nfsmount.c @@ -182,18 +182,6 @@ mntnull(int n, Rpccall *cmd, Rpccall *reply) return 0; } -static char* -Str2str(String s, char *buf, int nbuf) -{ - int i; - i = s.n; - if(i >= nbuf) - i = nbuf-1; - memmove(buf, s.s, i); - buf[i] = 0; - return buf; -} - static int mntmnt(int n, Rpccall *cmd, Rpccall *reply) { diff --git a/sys/src/cmd/9nfs/server.c b/sys/src/cmd/9nfs/server.c index fe70f1036..616ea1f4b 100644 --- a/sys/src/cmd/9nfs/server.c +++ b/sys/src/cmd/9nfs/server.c @@ -4,7 +4,6 @@ static int alarmflag; static int Iconv(Fmt*); -static void openudp(int); static void cachereply(Rpccall*, void*, int); static int replycache(int, Rpccall*, long (*)(int, void*, long)); static void udpserver(int, Progmap*); @@ -444,12 +443,6 @@ domlookupl(void *name, int len) } static Namecache* -domlookup(void *name) -{ - return domlookupl(name, strlen(name)); -} - -static Namecache* iplookup(ulong ip) { Namecache *n, **ln; |