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->mtime = time(nil);
s->length = len; s->length = len;
s->name = f->tab.name; s->name = f->tab.name;
/* XXX This genenv should be called once */ s->uid = user;
s->uid = getenv("USER"); s->gid = user;
s->gid = getenv("USER"); s->muid = user;
s->muid = getenv("USER");
} }
/* lookup_file */ /* lookup_file */

View File

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

View File

@ -160,22 +160,6 @@ typedef struct {
int colmode; int colmode;
} Default; } 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 */ /* global variables */
View *view; View *view;
Client *client; Client *client;
@ -196,7 +180,7 @@ GC bargc;
GC xorgc; GC xorgc;
BlitzWidget *bartile; BlitzWidget *bartile;
XRectangle brect; XRectangle brect;
PackedQid root_qid; char *user;
Default def; Default def;
Atom wm_atom[WMLast]; Atom wm_atom[WMLast];
Atom net_atom[NetLast]; Atom net_atom[NetLast];