Skip to content
Snippets Groups Projects
Commit a4c5446b authored by John Hodge (sonata)'s avatar John Hodge (sonata)
Browse files

Usermode/libposix - Fix types in select, minor in crypt

parent c6eb9805
No related merge requests found
......@@ -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;
......
......@@ -10,5 +10,12 @@
// === 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
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment