diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-06-02 00:48:50 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-06-02 00:48:50 +0000 |
commit | ba106d47906768b6e657462b9a484fe0c3a0f0d5 (patch) | |
tree | fe43417a2002a0c21277647d86a96e9b4b23368f /pp_sys.c | |
parent | 58a40671cc13fcd5c38641be59cb1e7f87a5e905 (diff) | |
download | perl-ba106d47906768b6e657462b9a484fe0c3a0f0d5.tar.gz |
remove stray K&R-isms
p4raw-id: //depot/perl@3515
Diffstat (limited to 'pp_sys.c')
-rw-r--r-- | pp_sys.c | 18 |
1 files changed, 8 insertions, 10 deletions
@@ -228,7 +228,8 @@ static char zero_but_true[ZBTLEN + 1] = "0 but true"; || defined(HAS_SETREGID) || defined(HAS_SETRESGID)) /* The Hard Way. */ STATIC int -emulate_eaccess (const char* path, int mode) { +emulate_eaccess (const char* path, int mode) +{ Uid_t ruid = getuid(); Uid_t euid = geteuid(); Gid_t rgid = getgid(); @@ -292,7 +293,8 @@ emulate_eaccess (const char* path, int mode) { #if !defined(PERL_EFF_ACCESS_R_OK) STATIC int -emulate_eaccess (const char* path, int mode) { +emulate_eaccess (const char* path, int mode) +{ croak("switching effective uid is not implemented"); /*NOTREACHED*/ return -1; @@ -3173,10 +3175,8 @@ PP(pp_readlink) } #if !defined(HAS_MKDIR) || !defined(HAS_RMDIR) -static int -dooneliner(cmd, filename) -char *cmd; -char *filename; +STATIC int +dooneliner(char *cmd, char *filename) { char *save_filename = filename; char *cmdline; @@ -4958,10 +4958,8 @@ fcntl_emulate_flock(int fd, int operation) # define F_TEST 3 /* Test a region for other processes locks */ # endif -static int -lockf_emulate_flock (fd, operation) -int fd; -int operation; +STATIC int +lockf_emulate_flock (int fd, int operation) { int i; int save_errno; |