diff --git a/src/syncterm/bbslist.c b/src/syncterm/bbslist.c
index 5f7cc05b759c8feebfded8610914e1b29abce055..57c3677f5805cb23df88354961fa9d1bd808115a 100644
--- a/src/syncterm/bbslist.c
+++ b/src/syncterm/bbslist.c
@@ -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];
diff --git a/src/syncterm/bbslist.h b/src/syncterm/bbslist.h
index 2919c92d606c1e8e596e27bf6909a87b72affc34..0737b5cba787a8f1f04ae966484addcb53b1e680 100644
--- a/src/syncterm/bbslist.h
+++ b/src/syncterm/bbslist.h
@@ -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
diff --git a/src/syncterm/conn.c b/src/syncterm/conn.c
index 21ace1b06eead8780596c79bcf4382f0b71e8932..98fc2adb2099ac0c537f0b0c7b8bbcef277ff0b4 100644
--- a/src/syncterm/conn.c
+++ b/src/syncterm/conn.c
@@ -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
diff --git a/src/syncterm/conn.h b/src/syncterm/conn.h
index d9c3f79839f38d88ed3225c458247de2586a48d1..ae2064fa5e18c8a56ba21904c9cd174c260dcfb6 100644
--- a/src/syncterm/conn.h
+++ b/src/syncterm/conn.h
@@ -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
diff --git a/src/uifc/filepick.c b/src/uifc/filepick.c
index 7ae5007eef3fe293efc3421393743f2a57abd2d7..a2e63eece4fd46246c7a28b5d1878f9fd5198498 100644
--- a/src/uifc/filepick.c
+++ b/src/uifc/filepick.c
@@ -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);