aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2008-05-16 11:12:48 +0000
committerEli Zaretskii2008-05-16 11:12:48 +0000
commit1cab27d2547b15ad0f1054e09bc25a5b2e991369 (patch)
tree0b91f6fcf9c7d337e5f327df9b84dd0f33f10209 /src
parent1ccdfd3359b205f30819a5e22bf47dad3ead46b1 (diff)
downloademacs-1cab27d2547b15ad0f1054e09bc25a5b2e991369.tar.gz
emacs-1cab27d2547b15ad0f1054e09bc25a5b2e991369.zip
(Ffile_attributes): Shut up GCC warnings about st_uid
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog13
-rw-r--r--src/dired.c12
2 files changed, 20 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index cff5c24b1fd..795819b75eb 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,16 @@
12008-05-16 Eli Zaretskii <eliz@gnu.org>
2
3 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
4 and st_gid.
5
6 * frame.c (Fdelete_frame): Don't call font_update_drviers if
7 HAVE_WINDOW_SYSTEM is not defined.
8
9 * xfaces.c (merge_face_ref, merge_face_vectors)
10 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
11 HAVE_WINDOW_SYSTEM is defined.
12 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
13
12008-05-16 Stefan Monnier <monnier@iro.umontreal.ca> 142008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
2 15
3 * keyboard.c (parse_menu_item): Do not cache key shortcut any more. 16 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
diff --git a/src/dired.c b/src/dired.c
index 6e241338743..7de334bb876 100644
--- a/src/dired.c
+++ b/src/dired.c
@@ -979,7 +979,7 @@ which see. */)
979 char modes[10]; 979 char modes[10];
980 Lisp_Object handler; 980 Lisp_Object handler;
981 struct gcpro gcpro1; 981 struct gcpro gcpro1;
982 EMACS_INT ino; 982 EMACS_INT ino, uid, gid;
983 char *uname, *gname; 983 char *uname, *gname;
984 984
985 filename = Fexpand_file_name (filename, Qnil); 985 filename = Fexpand_file_name (filename, Qnil);
@@ -1015,20 +1015,22 @@ which see. */)
1015#endif 1015#endif
1016 } 1016 }
1017 values[1] = make_number (s.st_nlink); 1017 values[1] = make_number (s.st_nlink);
1018 uid = s.st_uid;
1019 gid = s.st_gid;
1018 if (NILP (id_format) || EQ (id_format, Qinteger)) 1020 if (NILP (id_format) || EQ (id_format, Qinteger))
1019 { 1021 {
1020 values[2] = make_fixnum_or_float (s.st_uid); 1022 values[2] = make_fixnum_or_float (uid);
1021 values[3] = make_fixnum_or_float (s.st_gid); 1023 values[3] = make_fixnum_or_float (gid);
1022 } 1024 }
1023 else 1025 else
1024 { 1026 {
1025 BLOCK_INPUT; 1027 BLOCK_INPUT;
1026 uname = stat_uname (&s); 1028 uname = stat_uname (&s);
1027 values[2] = (uname ? build_string (uname) 1029 values[2] = (uname ? build_string (uname)
1028 : make_fixnum_or_float (s.st_uid)); 1030 : make_fixnum_or_float (uid));
1029 gname = stat_gname (&s); 1031 gname = stat_gname (&s);
1030 values[3] = (gname ? build_string (gname) 1032 values[3] = (gname ? build_string (gname)
1031 : make_fixnum_or_float (s.st_gid)); 1033 : make_fixnum_or_float (gid));
1032 UNBLOCK_INPUT; 1034 UNBLOCK_INPUT;
1033 } 1035 }
1034 values[4] = make_time (s.st_atime); 1036 values[4] = make_time (s.st_atime);