Dmitry V. Levin
86bce103a6
Change functions declared as taking unspecified number of arguments of unspecified type to functions that take no arguments. Reported by kernel's checkpatch.pl script.
22 lines
261 B
C
22 lines
261 B
C
#include <stdlib.h>
|
|
#include <signal.h>
|
|
#include <unistd.h>
|
|
|
|
static void
|
|
interrupt(void)
|
|
{
|
|
write(2, "xyzzy\n", 6);
|
|
}
|
|
|
|
int
|
|
main(int argc, char *argv[])
|
|
{
|
|
char buf[1024];
|
|
|
|
signal(SIGINT, interrupt);
|
|
read(0, buf, 1024);
|
|
write(2, "qwerty\n", 7);
|
|
|
|
return 0;
|
|
}
|