---
 config.c     |    4 ++--
 copyright.c  |    2 +-
 dial.c       |    3 ++-
 global.h     |    4 ++--
 globald.h    |    3 +++
 inet.c       |    6 +++---
 mdmdetect.c  |   14 +++++++++++++-
 procedure.c  |    2 +-
 protocoles.c |    2 +-
 teleinfo.c   |    1 +
 xtel.c       |    2 +-
 xteld.c      |    4 ++--
 12 files changed, 32 insertions(+), 15 deletions(-)

--- a/xtel.c
+++ b/xtel.c
@@ -434,7 +434,7 @@ Widget top;
 /*
  * Programme principal
  */
-main(ac, av)
+int main(ac, av)
 int ac;
 char **av;
 {
--- a/inet.c
+++ b/inet.c
@@ -44,7 +44,7 @@ static char rcsid[] = "$Id: inet.c,v 1.5
 #define u_short ushort
 #endif
 
-c_socket (host, port)
+int c_socket (host, port)
 char *host;
 int port;
 {
@@ -85,7 +85,7 @@ int port;
  *	Ex : sock = c_clientbyname("aneth", "courier")
  *
  */
-c_clientbyname (host, name)
+int c_clientbyname (host, name)
 char *host, *name;
 {
   struct servent *sv;  
@@ -105,7 +105,7 @@ char *host, *name;
  *	Ex : sock = c_clientbyport ("aneth", 1313)
  *
  */
-c_clientbyport (host, port)
+int c_clientbyport (host, port)
 char *host;
 int port;
 {
--- a/procedure.c
+++ b/procedure.c
@@ -71,7 +71,7 @@ int *pi;
 #define NEW(s)	((s *)calloc (1, sizeof(s)))
 
 /* Lecture et initialisation des procedures */
-init_procedures (file)
+int init_procedures (file)
 char *file;
 {
   char buf[256];
--- a/teleinfo.c
+++ b/teleinfo.c
@@ -419,6 +419,7 @@ void clear_reception ()
 
 int test_retour_videotex ( car , m )
      char car ;
+     int m;
 {
 
   fprintf (stderr, "teleinfo: %x %d %d\n", car,indice_reception,indice_reception_fin_fr) ;
--- a/copyright.c
+++ b/copyright.c
@@ -150,7 +150,7 @@ XButtonEvent *pevent;
 /*
  * Fonction publique d'affichage
  */
-affiche_copyright (w, classe_forme, pixmap)
+void affiche_copyright (w, classe_forme, pixmap)
 Widget w;
 WidgetClass classe_forme;
 Pixmap pixmap;
--- a/global.h
+++ b/global.h
@@ -104,7 +104,7 @@ void clear_reception ( void ) ;
 int test_retour_videotex ( char car , int m ) ;
 
 /* copyright.c */
-int affiche_copyright(Widget w, WidgetClass classe_forme, Pixmap pixmap);
+void affiche_copyright(Widget w, WidgetClass classe_forme, Pixmap pixmap);
 
 /* xm.c/xaw.c */
 Widget init_toolkit(int *pargc, char **argv);
@@ -186,7 +186,7 @@ void fonction_lecture_teleinfo();
 void zigouille_xterm_teleinfo();
 void selection_mode_emulation();
 
-int affiche_copyright();
+void affiche_copyright();
 
 Widget init_toolkit();
 Widget init_widgets();
--- a/protocoles.c
+++ b/protocoles.c
@@ -41,7 +41,7 @@ static void waitchild ()
 /*
  * Initialise un protocole de telechargement
  */
-init_protocoles (nom, proto)
+int init_protocoles (nom, proto)
 char *nom;
 struct protocole *proto;
 {
--- a/xteld.c
+++ b/xteld.c
@@ -482,7 +482,7 @@ static void test_mort_subite ()
 }    
 
 /* Test chaine = nombre */
-static is_number (s)
+static int is_number (s)
 char *s;
 {
     register char *p = s;
@@ -1462,7 +1462,7 @@ err:
 /*
  *	Partie principale 
  */
-main (ac, av)
+int main (ac, av)
 int ac;
 char **av;
 {
--- a/globald.h
+++ b/globald.h
@@ -76,6 +76,9 @@ char *xtel_basename(char *s);
 /* ian.c */
 int ian_valide (int, char);
 void ian_init (char*);
+/* inet.c */
+int c_clientbyname(char *host, char *name);
+int c_clientbyport(char *host, int port);
 
 /* modem.c */
 void init_tty (int, int, int, int, int, int, int);
--- a/config.c
+++ b/config.c
@@ -137,7 +137,7 @@ static int get_separator (char *s, char
 /*
  * lecture des services disponibles
  */
-lecture_services ()
+int lecture_services ()
 {
     FILE *fp;
     int i = 0;
@@ -203,7 +203,7 @@ lecture_services ()
 /*
  * lecture des lignes disponibles
  */
-lecture_configuration_lignes ()
+int lecture_configuration_lignes ()
 {	
     FILE *fp;
     register int i;
--- a/dial.c
+++ b/dial.c
@@ -42,6 +42,7 @@ static char rcsid[] = "$Id: dial.c,v 1.1
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
+#include <signal.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/time.h>
@@ -81,7 +82,7 @@ int fd;
 /*
  * Fonction DIAL
  */
-mydial (telno, device)
+int mydial (telno, device)
 char *telno, *device;
 {
     char buf[80], erreur;
--- a/mdmdetect.c
+++ b/mdmdetect.c
@@ -83,8 +83,10 @@ char *s;
 static void the_end (r)
 int r;
 {
+#ifdef DEBUG_XTELD
   if (debug)
     log_debug ("the_end: %d", r);
+#endif
 
   if (!query) {
     unlink (lock_file);
@@ -255,14 +257,16 @@ static char* check_for_kw (int fd, char
   if (do_chat (fd, chat_script, TIMEOUT_READ, TEMPO, NULL, modem_string, sizeof(modem_string)) != 0)
     return NULL;
 
+#ifdef DEBUG_XTELD
   if (debug)
     log_debug ("reponse= %s", modem_string);
+#endif
 
   return modem_string;
 }
 
 
-main (ac, av)
+int main (ac, av)
 int ac;
 char **av;
 {
@@ -340,8 +344,10 @@ char **av;
     /* Lecture de la liste des modems */
     while (read_a_line (fdl, buf, sizeof(buf)) > 0) {
 
+#ifdef DEBUG_XTELD
       if (debug)
 	log_debug ("(%s)", buf);
+#endif
 
       if (buf[0] == '#' || buf[0] == '\n')
 	continue;
@@ -390,8 +396,10 @@ char **av;
 	lseek (fdl, 0, 0);
 	found = 0;
 	while (!found && read_a_line (fdl, buf, sizeof(buf)) > 0) {
+#ifdef DEBUG_XTELD
 	  if (debug)
 	    log_debug ("(%s)", buf);
+#endif
 	  if (buf[0] == '#' || buf[0] == '\n') {
 	    /* commentaire ou ligne blanche */
 	  }
@@ -404,8 +412,10 @@ char **av;
 	    /* description d'un modem */
 	    modem_string = next_token (buf, ":");   /* Mot-cl  tester */
 	    if (strstr (reponse, modem_string)) {
+#ifdef DEBUG_XTELD
 	      if (debug)
 		log_debug ("%s trouve !", modem_string);
+#endif
 	      found = 1;
 	    }
 	  }
@@ -414,8 +424,10 @@ char **av;
     }
 
     if (found) {
+#ifdef DEBUG_XTELD
       if (debug)
 	log_debug ("builder= %s modem id= %s", fab, modem_string);
+#endif
 
       puts ("\n");
 
