Removed some noise.

This commit is contained in:
Kris Maglione 2006-06-22 03:28:39 -04:00
parent ebbfd75386
commit 50bed8e056
3 changed files with 6 additions and 21 deletions

View File

@ -358,10 +358,9 @@ dostat(Stat *s, unsigned int len, FileId *f) {
s->mtime = time(nil);
s->length = len;
s->name = f->tab.name;
/* XXX This genenv should be called once */
s->uid = getenv("USER");
s->gid = getenv("USER");
s->muid = getenv("USER");
s->uid = user;
s->gid = user;
s->muid = user;
}
/* lookup_file */

View File

@ -293,6 +293,8 @@ main(int argc, char *argv[])
lbar = nil;
key = nil;
user = getenv("USER");
def.colrules.string = nil;
def.colrules.size = 0;
def.tagrules.string = nil;

View File

@ -160,22 +160,6 @@ typedef struct {
int colmode;
} Default;
typedef struct {
union {
Qid qid;
struct {
unsigned char type;
unsigned int version;
unsigned char ptype;
unsigned short i1id;
unsigned short i2id;
unsigned short i3id;
};
};
} PackedQid;
/* global variables */
/* global variables */
View *view;
Client *client;
@ -196,7 +180,7 @@ GC bargc;
GC xorgc;
BlitzWidget *bartile;
XRectangle brect;
PackedQid root_qid;
char *user;
Default def;
Atom wm_atom[WMLast];
Atom net_atom[NetLast];