From d27203ef46175dc2816882244e559138475a4477 Mon Sep 17 00:00:00 2001 From: linD026 <66012716+linD026@users.noreply.github.com> Date: Thu, 2 Sep 2021 16:26:29 +0800 Subject: [PATCH] Enforce consistent style for directory "other" (#89) --- examples/Makefile | 1 + examples/other/cat_nonblock.c | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) 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 */