1
0
Fork 0
forked from soccera/rdo

Move variable declerations to start of file

This commit is contained in:
sw1tchbl4d3 2021-07-29 17:29:38 +02:00
parent a30dffcf5d
commit 5bc96bc7f4

View file

@ -78,12 +78,12 @@ int ensuredir() {
}
void setsession(int pid, unsigned int ts_ttl) {
if (ts_ttl == 0)
return;
unsigned long long startts;
char path[1024], ts_str[32];
if (ts_ttl == 0)
return;
if (ensuredir() < 0 || getpstartts(pid, &startts) < 0)
return;
@ -109,12 +109,12 @@ void setsession(int pid, unsigned int ts_ttl) {
}
int getsession(int pid, unsigned int ts_ttl) {
if (ts_ttl == 0)
return -1;
unsigned long long startts, current;
char path[1024], ts_str[32];
if (ts_ttl == 0)
return -1;
if (ensuredir() < 0 || getpstartts(pid, &startts) < 0)
return -1;