Enforce consistent style for directory "other" (#89)

This commit is contained in:
linD026 2021-09-02 16:26:29 +08:00 committed by GitHub
parent eef2bc4395
commit d27203ef46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 5 deletions

View File

@ -39,3 +39,4 @@ clean:
indent:
clang-format -i *[.ch]
clang-format -i other/*[.ch]

View File

@ -2,9 +2,9 @@
* cat_nonblock.c - open a file and display its contents, but exit rather than
* wait for input.
*/
#include <errno.h> /* for errno */
#include <fcntl.h> /* for open */
#include <stdio.h> /* standard I/O */
#include <errno.h> /* for errno */
#include <fcntl.h> /* for open */
#include <stdio.h> /* standard I/O */
#include <stdlib.h> /* for exit */
#include <unistd.h> /* 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 */