This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[ob] call truncate, not stat


-Werror threw this one up. Committed.

Andrew
2003-10-21  Andrew Cagney  <cagney@redhat.com>

	* callback.c (os_truncate): Call "truncate", and not "stat".

Index: callback.c
===================================================================
RCS file: /cvs/src/src/sim/common/callback.c,v
retrieving revision 1.6
diff -u -r1.6 callback.c
--- callback.c	15 Oct 2003 12:30:47 -0000	1.6
+++ callback.c	21 Oct 2003 20:41:05 -0000
@@ -420,7 +420,7 @@
      const char *file;
      long len;
 {
-  return wrap (p, stat (file, len));
+  return wrap (p, truncate (file, len));
 }
 
 static int

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]