Skip to content

Commit d27203e

Browse files
authored
Enforce consistent style for directory "other" (#89)
1 parent eef2bc4 commit d27203e

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

examples/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,4 @@ clean:
3939

4040
indent:
4141
clang-format -i *[.ch]
42+
clang-format -i other/*[.ch]

examples/other/cat_nonblock.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
* cat_nonblock.c - open a file and display its contents, but exit rather than
33
* wait for input.
44
*/
5-
#include <errno.h> /* for errno */
6-
#include <fcntl.h> /* for open */
7-
#include <stdio.h> /* standard I/O */
5+
#include <errno.h> /* for errno */
6+
#include <fcntl.h> /* for open */
7+
#include <stdio.h> /* standard I/O */
88
#include <stdlib.h> /* for exit */
99
#include <unistd.h> /* for read */
1010

1111
#define MAX_BYTES 1024 * 4
1212

1313
int main(int argc, char *argv[])
1414
{
15-
int fd; /* The file descriptor for the file to read */
16-
size_t bytes; /* The number of bytes read */
15+
int fd; /* The file descriptor for the file to read */
16+
size_t bytes; /* The number of bytes read */
1717
char buffer[MAX_BYTES]; /* The buffer for the bytes */
1818

1919
/* Usage */

0 commit comments

Comments
 (0)