diff --git a/chkfont.c b/chkfont.c
index 03ea495..92fefad 100644
--- a/chkfont.c
+++ b/chkfont.c
@@ -471,5 +471,5 @@ for (arg=1;arg<argc;arg++) {
   checkit();
   if (fileline!=NULL) free(fileline);
   }
-exit(0);
+return 0;
 }