Skip to content
Snippets Groups Projects
Commit 85410783 authored by deuce's avatar deuce
Browse files

Fix warnings.

parent a7508a36
No related branches found
No related tags found
No related merge requests found
......@@ -340,6 +340,7 @@ int listcmp(const void *aptr, const void *bptr)
return(ret);
}
}
return(0);
}
void sort_list(struct bbslist **list, int *listcount) {
......@@ -423,8 +424,6 @@ void edit_sorting(struct bbslist **list, int *listcount)
int scurr=0,sbar=0;
int ret,sret;
int i,j;
str_list_t sorting;
FILE *inifile;
for(i=0;i<sizeof(sort_order)/sizeof(struct sort_order_info)+1;i++)
opts[i]=opt[i];
......
......@@ -80,6 +80,7 @@ void read_item(str_list_t listfile, struct bbslist *entry, char *bbsname, int id
void read_list(char *listpath, struct bbslist **list, struct bbslist *defaults, int *i, int type);
void free_list(struct bbslist **list, int listcount);
void add_bbs(char *listpath, struct bbslist *bbs);
int edit_list(struct bbslist **list, struct bbslist *item,char *listpath,int isdefault);
int get_rate_num(int rate);
#endif
......@@ -27,7 +27,7 @@ char *conn_types[]={"Unknown","RLogin","Telnet","Raw","SSH","Modem"
,"Shell"
#endif
,NULL};
int conn_ports[]={0,513,23,0,22,0
short unsigned int conn_ports[]={0,513,23,0,22,0
#ifdef __unix__
,65535
#endif
......
......@@ -9,7 +9,7 @@
#include "bbslist.h"
extern char *conn_types[];
extern int conn_ports[];
extern short unsigned int conn_ports[];
enum {
CONN_TYPE_UNKNOWN
......
......@@ -45,7 +45,7 @@ void drawfpwindow(uifcapi_t *api)
if(api->mode&UIFC_MOUSE && width>6) {
lbuf[2]='[';
lbuf[3]=api->hclr|(api->bclr<<4);
lbuf[4]=0xfe;
lbuf[4]='\xfe';
lbuf[5]=api->lclr|(api->bclr<<4);
lbuf[6]=']';
lbuf[7]=api->hclr|(api->bclr<<4);
......
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