This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[ob] call truncate, not stat
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Tue, 21 Oct 2003 16:43:34 -0400
- Subject: [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