diff --git a/examples/Makefile b/examples/Makefile index a92b92c..d20a9e9 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -39,3 +39,4 @@ clean: indent: clang-format -i *[.ch] + clang-format -i other/*[.ch] diff --git a/examples/other/cat_nonblock.c b/examples/other/cat_nonblock.c index b04e239..28fba39 100644 --- a/examples/other/cat_nonblock.c +++ b/examples/other/cat_nonblock.c @@ -2,9 +2,9 @@ * cat_nonblock.c - open a file and display its contents, but exit rather than * wait for input. */ -#include /* for errno */ -#include /* for open */ -#include /* standard I/O */ +#include /* for errno */ +#include /* for open */ +#include /* standard I/O */ #include /* for exit */ #include /* for read */ @@ -12,8 +12,8 @@ int main(int argc, char *argv[]) { - int fd; /* The file descriptor for the file to read */ - size_t bytes; /* The number of bytes read */ + int fd; /* The file descriptor for the file to read */ + size_t bytes; /* The number of bytes read */ char buffer[MAX_BYTES]; /* The buffer for the bytes */ /* Usage */