Fix warnings

This commit is contained in:
Vladimir Dubrovin committed 2026-04-08 21:13:45 +03:00
1 parent 0381461495
commit 8cb8be1be8
11 files changed
+42 -46

No files matched your search

+3 -3
View File
@@ -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)){}
}
}
}