diff options
author | Lucien Van Elsen <lwvanels@mit.edu> | 1992-01-17 03:00:51 +0000 |
---|---|---|
committer | Lucien Van Elsen <lwvanels@mit.edu> | 1992-01-17 03:00:51 +0000 |
commit | fafb32d50dcae9fb121735e7ae3c6cee1de8bec4 (patch) | |
tree | 6951bf55d45a193be46c3d22f973d77de4623edf | |
parent | 6a9132baf3f5383d17f004c136a711df0fb966eb (diff) |
Don't store len in zstring; v. infreq. used.
-rw-r--r-- | server/zstring.c | 1 | ||||
-rw-r--r-- | server/zstring.h | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/server/zstring.c b/server/zstring.c index f9377da..6b5aed3 100644 --- a/server/zstring.c +++ b/server/zstring.c @@ -78,7 +78,6 @@ make_zstring(s, downcase) new_s = strsave(s); new_z = (ZSTRING *) malloc(sizeof(ZSTRING)); new_z->string = new_s; - new_z->len = strlen(new_s); new_z->ref_count = 1; /* Add to beginning of hash table */ diff --git a/server/zstring.h b/server/zstring.h index d3fb1a1..5d3aaa1 100644 --- a/server/zstring.h +++ b/server/zstring.h @@ -19,7 +19,6 @@ typedef struct _zstring { char *string; /* the string itself */ - int len; /* string length, for speed */ int ref_count; /* for gc */ unsigned long hash_val; /* hash value for this string */ struct _zstring *next; /* for linking in hash table */ |