diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-10-31 13:03:48 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-10-31 13:03:48 +0100 |
commit | 7e3cf5f461eb4fbb7581672bf0835da07c378136 (patch) | |
tree | bdc3874b7894242b095b892f1ed3e81a4d4f06c0 /src/util/disk.c | |
parent | 01b480d6d026e0c537dc284a7e7df2c0320a3528 (diff) | |
download | gnunet-7e3cf5f461eb4fbb7581672bf0835da07c378136.tar.gz gnunet-7e3cf5f461eb4fbb7581672bf0835da07c378136.zip |
tighten formatting rules
Diffstat (limited to 'src/util/disk.c')
-rw-r--r-- | src/util/disk.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/util/disk.c b/src/util/disk.c index 32667d554..47a0ed5c9 100644 --- a/src/util/disk.c +++ b/src/util/disk.c | |||
@@ -194,6 +194,7 @@ GNUNET_DISK_handle_invalid (const struct GNUNET_DISK_FileHandle *h) | |||
194 | return ((! h) || (h->fd == -1)) ? GNUNET_YES : GNUNET_NO; | 194 | return ((! h) || (h->fd == -1)) ? GNUNET_YES : GNUNET_NO; |
195 | } | 195 | } |
196 | 196 | ||
197 | |||
197 | /** | 198 | /** |
198 | * Get the size of an open file. | 199 | * Get the size of an open file. |
199 | * | 200 | * |
@@ -1145,10 +1146,11 @@ GNUNET_DISK_filename_canonicalize (char *fn) | |||
1145 | { | 1146 | { |
1146 | c = *idx; | 1147 | c = *idx; |
1147 | 1148 | ||
1148 | if ((c == '/') ||(c == '\\') ||(c == ':') ||(c == '*') ||(c == '?') ||(c == | 1149 | if ((c == '/') || (c == '\\') || (c == ':') || (c == '*') || (c == '?') || |
1149 | '"') | 1150 | (c == |
1151 | '"') | ||
1150 | || | 1152 | || |
1151 | (c == '<') ||(c == '>') ||(c == '|') ) | 1153 | (c == '<') || (c == '>') || (c == '|') ) |
1152 | { | 1154 | { |
1153 | *idx = '_'; | 1155 | *idx = '_'; |
1154 | } | 1156 | } |
@@ -1465,6 +1467,7 @@ GNUNET_DISK_file_map (const struct GNUNET_DISK_FileHandle *h, | |||
1465 | return (*m)->addr; | 1467 | return (*m)->addr; |
1466 | } | 1468 | } |
1467 | 1469 | ||
1470 | |||
1468 | /** | 1471 | /** |
1469 | * Unmap a file | 1472 | * Unmap a file |
1470 | * @param h mapping handle | 1473 | * @param h mapping handle |
@@ -1662,6 +1665,7 @@ GNUNET_DISK_pipe_close_end (struct GNUNET_DISK_PipeHandle *p, | |||
1662 | return ret; | 1665 | return ret; |
1663 | } | 1666 | } |
1664 | 1667 | ||
1668 | |||
1665 | /** | 1669 | /** |
1666 | * Detaches one of the ends from the pipe. | 1670 | * Detaches one of the ends from the pipe. |
1667 | * Detached end is a fully-functional FileHandle, it will | 1671 | * Detached end is a fully-functional FileHandle, it will |