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

Fix Clang warning reported by Deuce

scfgnet.c:1463:25: warning: result of comparison of constant 100000 with expression of type 'uint16_t' (aka 'unsigned short') is always true
parent 68c66c14
No related branches found
No related tags found
No related merge requests found
...@@ -36,7 +36,7 @@ bool sbbs_t::pack_rep(uint hubnum) ...@@ -36,7 +36,7 @@ bool sbbs_t::pack_rep(uint hubnum)
char error[256]; char error[256];
int mode; int mode;
const char* fmode; const char* fmode;
uint i,j,k; int i,j,k;
long msgcnt,submsgs,packedmail,netfiles=0,deleted; long msgcnt,submsgs,packedmail,netfiles=0,deleted;
uint32_t u; uint32_t u;
uint32_t posts; uint32_t posts;
......
...@@ -321,9 +321,9 @@ typedef struct { /* QWK Network Hub */ ...@@ -321,9 +321,9 @@ typedef struct { /* QWK Network Hub */
char fmt[MAX_FILEEXT_LEN+1]; /* Archive format */ char fmt[MAX_FILEEXT_LEN+1]; /* Archive format */
uint16_t time, /* Time to call-out */ uint16_t time, /* Time to call-out */
node, /* Node to do the call-out */ node, /* Node to do the call-out */
freq, /* Frequency of call-outs */ freq; /* Frequency of call-outs */
subs, /* Number Sub-boards carried */ int subs; /* Number Sub-boards carried */
*conf; /* Conference number of ea. */ uint16_t *conf; /* Conference number of ea. */
sub_t** sub; sub_t** sub;
time32_t last; /* Last network attempt */ time32_t last; /* Last network attempt */
uint32_t misc; /* QHUB_* flags */ uint32_t misc; /* QHUB_* flags */
......
...@@ -517,7 +517,7 @@ bool write_msgs_cfg(scfg_t* cfg) ...@@ -517,7 +517,7 @@ bool write_msgs_cfg(scfg_t* cfg)
iniSetString(&section, name, "format", cfg->qhub[i]->fmt, NULL); iniSetString(&section, name, "format", cfg->qhub[i]->fmt, NULL);
strListMerge(&ini, section); strListMerge(&ini, section);
free(section); free(section);
for(uint j=0; j<cfg->qhub[i]->subs; j++) { for(int j=0; j<cfg->qhub[i]->subs; j++) {
sub_t* sub = cfg->qhub[i]->sub[j]; sub_t* sub = cfg->qhub[i]->sub[j];
if(sub == NULL) if(sub == NULL)
continue; continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment