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

-1
View File
@@ -415,7 +415,6 @@ static int WINAPI fp_poll(void *state, struct pollfd *fds, unsigned int nfds, in
struct fp_stream *fps = NULL;
int res;
unsigned i;
int to;
for(i = 0; i<nfds; i++){
res = searchsocket(fds[i].fd, &fps);
+2 -2
View File
@@ -32,7 +32,7 @@ char **load_string(FILE *f,int max_count_str, int *countloadstr,
/*find start service section*/
while(!feof(f))
{
fgets(tmpbuf1, 1023,f);
if(!fgets(tmpbuf1, 1023,f)) return NULL;
if ((strstr(tmpbuf1,start))!=NULL) { i++; break; }
tmpbuf1[0]='\0';
}
@@ -51,7 +51,7 @@ char **load_string(FILE *f,int max_count_str, int *countloadstr,
i=0;
while ( !feof(f) || i< max_count_str)
{
fgets(tmpbuf1, 1023,f);
if(!fgets(tmpbuf1, 1023,f)) return NULL;
if ((strstr(tmpbuf1,stop))!=NULL) { break; }