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)
char error[256];
int mode;
const char* fmode;
uint i,j,k;
int i,j,k;
long msgcnt,submsgs,packedmail,netfiles=0,deleted;
uint32_t u;
uint32_t posts;
......
......@@ -321,9 +321,9 @@ typedef struct { /* QWK Network Hub */
char fmt[MAX_FILEEXT_LEN+1]; /* Archive format */
uint16_t time, /* Time to call-out */
node, /* Node to do the call-out */
freq, /* Frequency of call-outs */
subs, /* Number Sub-boards carried */
*conf; /* Conference number of ea. */
freq; /* Frequency of call-outs */
int subs; /* Number Sub-boards carried */
uint16_t *conf; /* Conference number of ea. */
sub_t** sub;
time32_t last; /* Last network attempt */
uint32_t misc; /* QHUB_* flags */
......
......@@ -517,7 +517,7 @@ bool write_msgs_cfg(scfg_t* cfg)
iniSetString(&section, name, "format", cfg->qhub[i]->fmt, NULL);
strListMerge(&ini, 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];
if(sub == NULL)
continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment