Skip to content

Commit

Permalink
Set C column limit to 78
Browse files Browse the repository at this point in the history
  • Loading branch information
lassik committed Aug 27, 2019
1 parent 62dd74e commit 0523596
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ IndentWidth: 8
UseTab: ForIndentation
AlwaysBreakAfterReturnType: TopLevel
PointerAlignment: Right
ColumnLimit: 78
4 changes: 2 additions & 2 deletions shm_open_anon.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ shm_open_anon(void)
r = (unsigned long)tv.tv_sec + (unsigned long)tv.tv_nsec;
for (fill = start; fill < limit; r /= 8)
*fill++ = '0' + (r % 8);
fd =
shm_open(name, O_RDWR | O_CREAT | O_EXCL | O_NOFOLLOW, 0600);
fd = shm_open(
name, O_RDWR | O_CREAT | O_EXCL | O_NOFOLLOW, 0600);
if (fd != -1)
return shm_unlink_or_close(name, fd);
if (errno != EEXIST)
Expand Down

0 comments on commit 0523596

Please sign in to comment.