1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-01 11:14:55 +00:00

Assume POSIX 1003.1-1988 or later for grp.h, pwd.h.

* dired.c (stat_uname, stat_gname):
* fileio.c (Fexpand_file_name): Remove no-longer-needed casts.
This commit is contained in:
Paul Eggert 2012-11-26 21:38:42 -08:00
parent 22626a856b
commit 350e0088e1
3 changed files with 8 additions and 3 deletions

View File

@ -1,8 +1,13 @@
2012-11-27 Paul Eggert <eggert@cs.ucla.edu>
Assume POSIX 1003.1-1988 or later for grp.h, pwd.h.
* dired.c (stat_uname, stat_gname):
* fileio.c (Fexpand_file_name): Remove no-longer-needed casts.
Assume POSIX 1003.1-1988 or later for errno.h (Bug#12968).
* dired.c (directory_files_internal, file_name_completion):
Assume EAGAIN and EINTR are defined.
* fileio.c (Fcopy_file): Assume EISDIR is defined.
* gmalloc.c (ENOMEM, EINVAL): Assume they're defined.
* gnutls.c (emacs_gnutls_write): Assume EAGAIN is defined.

View File

@ -820,7 +820,7 @@ stat_uname (struct stat *st)
#ifdef WINDOWSNT
return st->st_uname;
#else
struct passwd *pw = (struct passwd *) getpwuid (st->st_uid);
struct passwd *pw = getpwuid (st->st_uid);
if (pw)
return pw->pw_name;
@ -835,7 +835,7 @@ stat_gname (struct stat *st)
#ifdef WINDOWSNT
return st->st_gname;
#else
struct group *gr = (struct group *) getgrgid (st->st_gid);
struct group *gr = getgrgid (st->st_gid);
if (gr)
return gr->gr_name;

View File

@ -1042,7 +1042,7 @@ filesystem tree, not (expand-file-name ".." dirname). */)
o [p - nm] = 0;
block_input ();
pw = (struct passwd *) getpwnam (o + 1);
pw = getpwnam (o + 1);
unblock_input ();
if (pw)
{