[PATCH] Replaced int with mode_t as requested

NitishP nitishp at gmail.com
Mon Jan 7 22:01:50 EST 2008


Index: openssh/openbsd-compat/openbsd-compat.h
===================================================================
RCS file: /cvs/openssh/openbsd-compat/openbsd-compat.h,v
retrieving revision 1.43
diff -u -p -r1.43 openbsd-compat.h
--- openssh/openbsd-compat/openbsd-compat.h	25 Jun 2007 12:15:13 -0000	1.43
+++ openssh/openbsd-compat/openbsd-compat.h	7 Jan 2008 06:58:54 -0000
@@ -84,7 +84,7 @@ int setenv(register const char *name, re
 #endif

 #ifndef HAVE_STRMODE
-void strmode(int mode, char *p);
+void strmode(mode_t mode, char *p);
 #endif

 #if !defined(HAVE_MKDTEMP) || defined(HAVE_STRICT_MKSTEMP)
Index: openssh/openbsd-compat/strmode.c
===================================================================
RCS file: /cvs/openssh/openbsd-compat/strmode.c,v
retrieving revision 1.7
diff -u -p -r1.7 strmode.c
--- openssh/openbsd-compat/strmode.c	10 Nov 2005 05:38:54 -0000	1.7
+++ openssh/openbsd-compat/strmode.c	7 Jan 2008 06:58:54 -0000
@@ -37,10 +37,8 @@
 #include <sys/stat.h>
 #include <string.h>

-/* XXX mode should be mode_t */
-
 void
-strmode(int mode, char *p)
+strmode(mode_t mode, char *p)
 {
 	 /* print type */
 	switch (mode & S_IFMT) {


More information about the openssh-unix-dev mailing list