[OpenAFS-devel] [PATCH] confusion of == and =
Joe Buehler
jbuehler@hekimian.com
Thu, 13 Nov 2003 10:59:21 -0500
I assume the below patch is correct...
Index: file_tm.c
===================================================================
RCS file: /cvs/openafs/src/butm/file_tm.c,v
retrieving revision 1.9
diff -u -r1.9 file_tm.c
--- file_tm.c 8 Aug 2003 21:54:37 -0000 1.9
+++ file_tm.c 13 Nov 2003 15:57:34 -0000
@@ -1636,7 +1636,7 @@
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);
@@ -1688,7 +1688,7 @@
hset64(startOff, 0, 0);
w = USD_SEEK(p->fid, startOff, SEEK_END, &stopOff);
if (w)
- info->error == w;
+ info->error = w;
if (w)
ERROR_EXIT(BUTM_POSITION);
--
Joe Buehler