summaryrefslogtreecommitdiff
path: root/server/uloc.c
diff options
context:
space:
mode:
authorGravatar Lucien Van Elsen <lwvanels@mit.edu>1992-08-14 08:11:48 +0000
committerGravatar Lucien Van Elsen <lwvanels@mit.edu>1992-08-14 08:11:48 +0000
commit045924807edb845bc6268acd14591d00b690e8bd (patch)
tree3372fdbb95fa6a0508d0648d467d443cdd9a1b6f /server/uloc.c
parentcf23bbdc2bb66c3522649eda85983c502c6bbf99 (diff)
saber complains about pure assignment statements in ifs-
Diffstat (limited to 'server/uloc.c')
-rw-r--r--server/uloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/uloc.c b/server/uloc.c
index 55140c0..e2f3a5e 100644
--- a/server/uloc.c
+++ b/server/uloc.c
@@ -625,7 +625,7 @@ ulogin_add_user(notice, exposure, who)
(int) exposure));
#endif
- if (oldlocs = ulogin_find(notice,1)) {
+ if ((oldlocs = ulogin_find(notice,1)) != NULLZLT) {
#if 0
zdbug((LOG_DEBUG,"ul_add: already here"));
#endif
@@ -813,7 +813,7 @@ ulogin_find(notice, strict)
rlo = 0;
rhi = num_locs - 1; /* first index is 0 */
- while (compar = comp_zstring(locations[i].zlt_user, inst)) {
+ while ((compar = comp_zstring(locations[i].zlt_user, inst)) != 0) {
#if 0
zdbug ((LOG_DEBUG, "ulogin_find: comparing %s %s %s %d %d",
notice->z_class_inst,