projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
location gui
[carveJwlIkooP6JGAAIwe30JlM.git]
/
server.c
diff --git
a/server.c
b/server.c
index dfe8be870a25ad55f0ac084c7d92709391b0b3c3..be3f2a9e0d10d6b52efd8cf3f252a82827c03d82 100644
(file)
--- a/
server.c
+++ b/
server.c
@@
-11,6
+11,7
@@
#define _DEFAULT_SOURCE
#include <unistd.h>
#include <signal.h>
#define _DEFAULT_SOURCE
#include <unistd.h>
#include <signal.h>
+#include <time.h>
volatile sig_atomic_t sig_stop;
volatile sig_atomic_t sig_stop;
@@
-337,7
+338,9
@@
int main( int argc, char *argv[] )
/* TODO: Options to override, ammend, remove etc */
/* TODO: Options to override, ammend, remove etc */
- vg_prealloc_quota( 80*1024*1024 );
+ vg_set_mem_quota( 80*1024*1024 );
+ vg_alloc_quota();
+
highscores_init( 250000, 10000 );
if( !highscores_read() )
highscores_init( 250000, 10000 );
if( !highscores_read() )
@@
-394,8
+397,8
@@
int main( int argc, char *argv[] )
hSteamHTTP, k_EHTTPMethodGET,
"https://www.harrygodden.com/hello.txt" );
hSteamHTTP, k_EHTTPMethodGET,
"https://www.harrygodden.com/hello.txt" );
-
steam_async *call1 = steam_new_async
();
- call1->data = NULL;
+
vg_steam_async_call *call1 = vg_alloc_async_steam_api_call
();
+ call1->
user
data = NULL;
call1->p_handler = recieve_http;
SteamAPI_ISteamHTTP_SendHTTPRequest( hSteamHTTP, test_req, &call1->id );
#endif
call1->p_handler = recieve_http;
SteamAPI_ISteamHTTP_SendHTTPRequest( hSteamHTTP, test_req, &call1->id );
#endif