aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.h
diff options
context:
space:
mode:
authorPaul Eggert2011-09-30 13:22:01 -0700
committerPaul Eggert2011-09-30 13:22:01 -0700
commit4222c55da73988a2bf397184e46505fc9a52f8b4 (patch)
tree42ccf25d299fbf1ad4030b0d613c7d3bca89edde /src/buffer.h
parent9229fe8763afbfe5e416b8d6826307282bd84b60 (diff)
downloademacs-4222c55da73988a2bf397184e46505fc9a52f8b4.tar.gz
emacs-4222c55da73988a2bf397184e46505fc9a52f8b4.zip
* buffer.h (struct buffer): Use time_t, not int, for a time stamp.
This fixes a Y2038 bug on 64-bit hosts. * buffer.c (reset_buffer): * fileio.c (Fdo_auto_save, Fset_buffer_auto_saved) (Fclear_buffer_auto_save_failure): Use 0, not -1, to represent an unset failure time, since time_t might not be signed.
Diffstat (limited to 'src/buffer.h')
-rw-r--r--src/buffer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.h b/src/buffer.h
index 73628fe6dfc..a6b82abf053 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -566,8 +566,8 @@ struct buffer
566 Redisplay of this buffer is inhibited until it changes again. */ 566 Redisplay of this buffer is inhibited until it changes again. */
567 int display_error_modiff; 567 int display_error_modiff;
568 /* The time at which we detected a failure to auto-save, 568 /* The time at which we detected a failure to auto-save,
569 Or -1 if we didn't have a failure. */ 569 Or 0 if we didn't have a failure. */
570 int auto_save_failure_time; 570 time_t auto_save_failure_time;
571 /* Position in buffer at which display started 571 /* Position in buffer at which display started
572 the last time this buffer was displayed. */ 572 the last time this buffer was displayed. */
573 EMACS_INT last_window_start; 573 EMACS_INT last_window_start;