Commit 350e0088 authored by Paul Eggert's avatar Paul Eggert
Browse files

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.
parent 22626a85
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.
......
......@@ -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;
......
......@@ -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)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment