Mercurial > hg > xemacs-beta
diff src/editfns.c @ 664:6e99cc8c6ca5
[xemacs-hg @ 2001-09-18 05:04:26 by ben]
fileio.c: Fix various C++ compile errors in Andy's recent code.
callint.c, editfns.c, emacs.c, lread.c, redisplay-x.c: Fix sign-compare warnings.
scrollbar-msw.c: Fix crash under MS Windows. See comment around line 223 for
explanation.
font-lock.el: fix problem when you insert a comment on the line before a line of
code: if we use the following char, then when you hit backspace,
the following line of code turns the comment color.
configure.in: Don't use -Wshadow when compiling with g++ or you get buried in
silly warnings. This patch was already applied but somehow got
unapplied. Stephen?
author | ben |
---|---|
date | Tue, 18 Sep 2001 05:06:57 +0000 |
parents | b39c14581166 |
children | fdefd0186b75 |
line wrap: on
line diff
--- a/src/editfns.c Mon Sep 17 07:48:36 2001 +0000 +++ b/src/editfns.c Tue Sep 18 05:06:57 2001 +0000 @@ -636,7 +636,8 @@ { mkdir(path, 0700); /* ignore retval -- checked next anyway. */ } - if (lstat(path, &st) == 0 && st.st_uid == myuid && S_ISDIR(st.st_mode)) + if (lstat(path, &st) == 0 && st.st_uid == (uid_t) myuid && + S_ISDIR(st.st_mode)) { tmpdir = path; } @@ -824,7 +825,7 @@ #endif tem = ((!NILP (user) && !pw) ? Qnil - : make_ext_string ((Extbyte *) p, (q ? q - p : strlen (p)), + : make_ext_string ((Extbyte *) p, (q ? q - p : (int) strlen (p)), Qnative)); #ifdef AMPERSAND_FULL_NAME