---
 xteld.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/xteld.c
+++ b/xteld.c
@@ -453,12 +453,12 @@ static void deconnexion ()
 #endif
 
 	if ((fplog= fopen(FICHIER_LOG, "a")) != NULL) {
-	    long t= time(0), duree;
+	    time_t t= time(0), duree;
 	    char *at= ctime(&t);
 	    at[24]= '\000';
 
 	    duree = (t_connexion == 0 ? 0L : t-t_connexion);
-	    fprintf(fplog, "%s, %s deconnexion de : %s (%ld s sur %s)\n", at, utilisateur, service, duree, definition_lignes[numero_ligne].nom);
+	    fprintf(fplog, "%s, %s deconnexion de : %s (%ld s sur %s)\n", at, utilisateur, service, (unsigned long) duree, definition_lignes[numero_ligne].nom);
 	    fclose(fplog);
 	}
 	
