From bc3f5633e1747b3aaffa6d8210e6bc93cee63cee Mon Sep 17 00:00:00 2001 From: =?utf8?q?Erkin=20Alp=20G=C3=BCney?= Date: Sun, 8 Mar 2015 18:43:32 +0200 Subject: [PATCH] factor: main() signature corrected, header fixup --- Applications/util/factor.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Applications/util/factor.c b/Applications/util/factor.c index 5bba32ce..3bd45417 100644 --- a/Applications/util/factor.c +++ b/Applications/util/factor.c @@ -23,7 +23,9 @@ config FACTOR Factor integers. */ -#include "toys.h" +#include +#include +#include static void factor(char *s) { @@ -37,7 +39,7 @@ static void factor(char *s) l = strtol(s, &s, 0); if (*s && !isspace(*s)) { - error_msg("%s: not integer", err); + fprintf(stderr,"%s: not integer", err); return; } @@ -79,7 +81,7 @@ static void factor(char *s) } } -void main(int argc,char *argv[]) +int main(int argc,char *argv[]) { if (argc > 1) { char **ss; -- 2.34.1