Avoid implicit int and implicit function declarations. A mostly equivalent patch has been posted upstream: diff --git a/setserial.c b/setserial.c index f184e98db07ceb59..d181327fc568ede4 100644 --- a/setserial.c +++ b/setserial.c @@ -15,6 +15,9 @@ #include #include #include +#include +#include +#include #ifdef HAVE_ASM_IOCTLS_H #include @@ -714,6 +717,7 @@ fprintf(stderr, "\t* port\t\tset the I/O port\n"); exit(1); } +int main(int argc, char **argv) { int get_flag = 0, wild_intr_flag = 0;