non-ansi function in openbsd-compat

Dave Dykstra dwd at bell-labs.com
Fri Jun 8 03:29:57 EST 2001


I ran across one file in the openbsd-compat directory, strmode.c, that was
not using an ANSI C function declaration.  One compiler (HPUX's cc -Ae)
wouldn't let it pass.  Here's a patch.

- Dave Dykstra


*** openbsd-compat/strmode.c.O	Wed Jun  6 17:32:44 2001
--- openbsd-compat/strmode.c	Wed Jun  6 17:32:59 2001
***************
*** 43,51 ****
  #include <string.h>
  
  void
! strmode(mode, p)
! 	register mode_t mode;
! 	register char *p;
  {
  	 /* print type */
  	switch (mode & S_IFMT) {
--- 43,49 ----
  #include <string.h>
  
  void
! strmode(register mode_t mode, register char *p)
  {
  	 /* print type */
  	switch (mode & S_IFMT) {



More information about the openssh-unix-dev mailing list