mirror of
https://github.com/3proxy/3proxy.git
synced 2026-10-08 20:41:18 +00:00
Fix warnings
This commit is contained in:
parent
0381461495
commit
8cb8be1be8
11 changed files with 42 additions and 46 deletions
|
|
@ -215,7 +215,7 @@ void dumpcounters(struct trafcount *tlin, int counterd){
|
|||
|
||||
cheader.updated = conf.time;
|
||||
lseek(counterd, 0, SEEK_SET);
|
||||
write(counterd, &cheader, sizeof(struct counter_header));
|
||||
if(write(counterd, &cheader, sizeof(struct counter_header))){}
|
||||
for(tl=tlin; tl; tl = tl->next){
|
||||
if(tl->number){
|
||||
lseek(counterd,
|
||||
|
|
@ -224,7 +224,7 @@ void dumpcounters(struct trafcount *tlin, int counterd){
|
|||
crecord.traf64 = tl->traf64;
|
||||
crecord.cleared = tl->cleared;
|
||||
crecord.updated = tl->updated;
|
||||
write(counterd, &crecord, sizeof(struct counter_record));
|
||||
if(write(counterd, &crecord, sizeof(struct counter_record))){}
|
||||
}
|
||||
if(tl->type!=NEVER && timechanged(tl->cleared, conf.time, tl->type)){
|
||||
tl->cleared = conf.time;
|
||||
|
|
@ -315,7 +315,7 @@ void cyclestep(void){
|
|||
else
|
||||
strcat((char *)tmpbuf, (char *)conf.archiver[i]);
|
||||
}
|
||||
system((char *)tmpbuf+1);
|
||||
if(system((char *)tmpbuf+1)){}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue