From: Joe Buehler Date: Wed, 19 Nov 2003 21:43:29 +0000 (+0000) Subject: error-typo-20031119 X-Git-Tag: openafs-devel-1_3_50~19 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=d08f4a716fcfb012ae82d184b4cdd938048e4daa;p=packages%2Fo%2Fopenafs.git error-typo-20031119 confusion of == and = --- diff --git a/src/butm/file_tm.c b/src/butm/file_tm.c index d918a69d8..0b2193cda 100644 --- a/src/butm/file_tm.c +++ b/src/butm/file_tm.c @@ -1636,7 +1636,7 @@ file_Seek(info, position) w = USD_SEEK(p->fid, startOff, SEEK_SET, &stopOff); if (w) - info->error == w; + info->error = w; if (hcmp(startOff, stopOff) != 0) ERROR_EXIT(BUTM_POSITION); @@ -1687,10 +1687,10 @@ file_SeekEODump(info, position) p = (struct progress *)info->tmRock; hset64(startOff, 0, 0); w = USD_SEEK(p->fid, startOff, SEEK_END, &stopOff); - if (w) - info->error == w; - if (w) + if (w) { + info->error = w; ERROR_EXIT(BUTM_POSITION); + } if (hgetlo(stopOff) % BUTM_BLOCKSIZE) ERROR_EXIT(BUTM_POSITION);