[haiku-commits] haiku: hrev51361 - src/system/libroot/posix/stdlib

  • From: jerome.duval@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 13 Aug 2017 22:33:03 +0200 (CEST)

hrev51361 adds 1 changeset to branch 'master'
old head: 05d9795db3011efc407272f5b83e6bf33ed5c63e
new head: c35666602f2c788f97480cb5f9eee0592dae3e7b
overview: 
http://cgit.haiku-os.org/haiku/log/?qt=range&q=c35666602f2c+%5E05d9795db301

----------------------------------------------------------------------------

c35666602f2c: libroot: mktemp.c: fix gcc5 warnings.

                                   [ Jérôme Duval <jerome.duval@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev51361
Commit:      c35666602f2c788f97480cb5f9eee0592dae3e7b
URL:         http://cgit.haiku-os.org/haiku/commit/?id=c35666602f2c
Author:      Jérôme Duval <jerome.duval@xxxxxxxxx>
Date:        Sun Aug 13 20:05:37 2017 UTC

----------------------------------------------------------------------------

1 file changed, 2 insertions(+), 2 deletions(-)
src/system/libroot/posix/stdlib/mktemp.c | 4 ++--

----------------------------------------------------------------------------

diff --git a/src/system/libroot/posix/stdlib/mktemp.c 
b/src/system/libroot/posix/stdlib/mktemp.c
index 060474068..513e767 100644
--- a/src/system/libroot/posix/stdlib/mktemp.c
+++ b/src/system/libroot/posix/stdlib/mktemp.c
@@ -48,7 +48,7 @@
 
 static int _gettemp(char *, int *, int, int);
 
-static const unsigned char padchar[] = 
"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
+static const char padchar[] = 
"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
 
 
 #if 0
@@ -97,7 +97,7 @@ _gettemp(char *path, int *doopen, int domkdir, int slen)
        char *pad;
        struct stat sbuf;
        int rval;
-       static int seed = 0;
+       static unsigned int seed = 0;
 
        if (doopen != NULL && domkdir) {
                __set_errno(EINVAL);


Other related posts:

  • » [haiku-commits] haiku: hrev51361 - src/system/libroot/posix/stdlib - jerome . duval