Usermode/libposix - Fix types in select, minor in crypt
authorJohn Hodge (sonata) <[email protected]>
Tue, 11 Mar 2014 00:02:08 +0000 (08:02 +0800)
committerJohn Hodge (sonata) <[email protected]>
Tue, 11 Mar 2014 00:02:08 +0000 (08:02 +0800)
Usermode/Libraries/libposix.so_src/unistd.c
Usermode/Libraries/libposix.so_src/unistd_crypt.c

index f5b330d..a2f4eb7 100644 (file)
@@ -191,7 +191,7 @@ int kill(pid_t pid, int signal)
 
 int select(int nfd, fd_set *rfd, fd_set *wfd, fd_set *efd, struct timeval *timeout)
 {
-       long long int   ltimeout = 0, *ltimeoutp = NULL;
+       int64_t ltimeout = 0, *ltimeoutp = NULL;
        if( timeout )
        {
                ltimeout = timeout->tv_sec*1000 + timeout->tv_usec / 1000;
index a5eebfa..ba58a52 100644 (file)
 // === CODE ===
 char *crypt(const char *key, const char *salt)
 {
+       if( *salt == '$' )
+       {
+               // $x$salt$
+               // x=1 : MD5
+               // x=5 : SHA-256
+               // x=6 : SHA-512
+       }
        return "YIH14pBTDJvJ6"; // 'password' with the salt YI
 }

UCC git Repository :: git.ucc.asn.au