cedric pushed a commit to branch master.

commit 4605b91804836878b86de8761b3ae8e81b34ed46
Author: Cedric Bail <[email protected]>
Date:   Tue Jun 25 12:16:36 2013 +0900

    evil: returned the good value for mkstemp
    
    Added back some needed defines for elementary (was in evil 1.7.7).
---
 src/lib/evil/Evil.h        | 3 +++
 src/lib/evil/evil_stdlib.c | 4 ++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/lib/evil/Evil.h b/src/lib/evil/Evil.h
index 0aad5f0..eb84ec6 100644
--- a/src/lib/evil/Evil.h
+++ b/src/lib/evil/Evil.h
@@ -193,6 +193,9 @@ typedef unsigned long  gid_t;
 # define _S_IWUSR _S_IWRITE
 # define _S_IRUSR _S_IREAD
 
+#define S_IRWXO _S_IRWXU
+#define S_IRWXG _S_IRWXU
+
 #  define mkdir(p,m) _mkdir(p)
   /*
 #  define close(fd) _close(fd)
diff --git a/src/lib/evil/evil_stdlib.c b/src/lib/evil/evil_stdlib.c
index b7c814e..3e06393 100644
--- a/src/lib/evil/evil_stdlib.c
+++ b/src/lib/evil/evil_stdlib.c
@@ -310,7 +310,7 @@ _mkstemp(char *suffix, int val)
 
    val += 7777;
 
-   return v;
+   return val;
 }
 
 EAPI char *
@@ -369,7 +369,7 @@ mkstemp(char *__template)
      {
         int fd;
 
-       val = _mkstemp(suffix, val);
+        val = _mkstemp(suffix, val);
 
 #ifndef __MINGW32CE__
         fd = _open(__template, _O_RDWR | _O_BINARY | _O_CREAT | _O_EXCL, 
_S_IREAD | _S_IWRITE);

-- 

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

Reply via email to