aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/faces/facedb.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-02-14 19:42:16 +0000
committerrsc <devnull@localhost>2006-02-14 19:42:16 +0000
commit2eef1fa31676e58b0038f1c02dcc8df5e23149e6 (patch)
treef71ebda37f77c0139e60de9cd4e230c92ac4fc29 /src/cmd/faces/facedb.c
parent7575a9e1bb90c1876999881509797900787bb6b0 (diff)
downloadplan9port-2eef1fa31676e58b0038f1c02dcc8df5e23149e6.tar.gz
plan9port-2eef1fa31676e58b0038f1c02dcc8df5e23149e6.tar.bz2
plan9port-2eef1fa31676e58b0038f1c02dcc8df5e23149e6.zip
better lookup
Diffstat (limited to 'src/cmd/faces/facedb.c')
-rw-r--r--src/cmd/faces/facedb.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/cmd/faces/facedb.c b/src/cmd/faces/facedb.c
index b52dcbbb..3fa133a5 100644
--- a/src/cmd/faces/facedb.c
+++ b/src/cmd/faces/facedb.c
@@ -17,7 +17,6 @@ static int nsaved;
static char *facedom;
static char *libface;
static char *homeface;
-static char *machinelist;
/*
* Loading the files is slow enough on a dial-up line to be worth this trouble
@@ -258,7 +257,7 @@ estrstrdup(char *a, char *b)
static char*
tryfindfiledir(char *dom, char *user, char *dir)
{
- char *dict, *ndir, *x;
+ char *dict, *ndir, *x, *odom;
int fd;
int i, n;
Dir *d;
@@ -269,7 +268,6 @@ tryfindfiledir(char *dom, char *user, char *dir)
x = estrstrdup(dir, "/.machinelist");
dom = estrdup(translatedomain(dom, x));
free(x);
-
/*
* If this directory has a .dict, use it.
*/
@@ -354,12 +352,9 @@ findfile(Face *f, char *dom, char *user)
}
if(libface == nil)
libface = unsharp("#9/face");
- if(machinelist == nil)
- machinelist = estrstrdup(libface, "/.machinelist");
if(homeface == nil)
homeface = smprint("%s/lib/face", getenv("HOME"));
- dom = translatedomain(dom, machinelist);
if(dom == nil)
dom = facedom;