Skip to content
Snippets Groups Projects
Commit 7df6956d authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Don't log an error if there's QWKnet sub pointer value to be read

This partially reverts commit 44c3350f where a bunch of read() and write()
return value checking was added.
parent 850a6595
No related branches found
No related tags found
No related merge requests found
Pipeline #5221 passed
......@@ -3055,10 +3055,8 @@ void event_thread(void* arg)
sbbs->subscan[sbbs->cfg.qhub[i]->sub[j]->subnum].ptr=0;
if(file!=-1) {
lseek(file,sbbs->cfg.sub[sbbs->cfg.qhub[i]->sub[j]->subnum]->ptridx*sizeof(int32_t),SEEK_SET);
if(read(file,&sbbs->subscan[sbbs->cfg.qhub[i]->sub[j]->subnum].ptr
,sizeof(sbbs->subscan[sbbs->cfg.qhub[i]->sub[j]->subnum].ptr)) !=
sizeof(sbbs->subscan[sbbs->cfg.qhub[i]->sub[j]->subnum].ptr))
sbbs->errormsg(WHERE, ERR_READ, str, sizeof(uint32_t));
(void)read(file,&sbbs->subscan[sbbs->cfg.qhub[i]->sub[j]->subnum].ptr
,sizeof(sbbs->subscan[sbbs->cfg.qhub[i]->sub[j]->subnum].ptr));
}
}
if(file!=-1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment