mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-07-05 20:41:39 -07:00
big int to stdint switch
This commit is contained in:
parent
74931e3b58
commit
f124c26fc6
73 changed files with 1364 additions and 1235 deletions
|
@ -2,14 +2,14 @@
|
|||
|
||||
#ifndef _WIN32
|
||||
#include <time.h>
|
||||
int sleepn(time_t seconds)
|
||||
int32_t sleepn(time_t seconds)
|
||||
{
|
||||
struct timespec ts;
|
||||
ts.tv_sec = seconds;
|
||||
ts.tv_nsec = 0;
|
||||
return nanosleep(&ts, NULL);
|
||||
}
|
||||
int usleepn(long int milisec) {
|
||||
int32_t usleepn(int64_t milisec) {
|
||||
struct timespec ts;
|
||||
ts.tv_sec = milisec / 1000;
|
||||
ts.tv_nsec = (milisec % 1000) * 1000000L;
|
||||
|
@ -19,12 +19,12 @@ int usleepn(long int milisec) {
|
|||
#else
|
||||
|
||||
#include <windows.h>
|
||||
int sleepn(unsigned int seconds)
|
||||
int32_t sleepn(uint32_t seconds)
|
||||
{
|
||||
return SleepEx(milisec*1000,TRUE);
|
||||
}
|
||||
|
||||
int usleepn(unsigned int milisec)
|
||||
int32_t usleepn(uint32_t milisec)
|
||||
{
|
||||
return SleepEx(milisec,TRUE);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue