From 41f51144596c7660d3192c3bef32bb09c4f95fd6 Mon Sep 17 00:00:00 2001 From: "Rob Swindell (on Windows 11)" <rob@synchro.net> Date: Thu, 4 Jan 2024 19:17:54 -0800 Subject: [PATCH] Don't log an error if there's QWKnet sub pointer value to be read This partially reverts commit 7d26ad80 where a bunch of read() and write() return value checking was added. --- src/sbbs3/main.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/sbbs3/main.cpp b/src/sbbs3/main.cpp index be9f66fc1a..0983d194e0 100644 --- a/src/sbbs3/main.cpp +++ b/src/sbbs3/main.cpp @@ -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) -- GitLab