mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-04 05:40:14 -05:00
Source code beautification
Done with uncrustify.
This commit is contained in:
parent
be84bbffe4
commit
36a4d24333
14 changed files with 51 additions and 45 deletions
|
|
@ -512,7 +512,7 @@ const char* quote(char prefix, const char* str, char* buffer)
|
|||
*p++ = c;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
default :
|
||||
/* unquoted */
|
||||
if (p == end)
|
||||
goto bail;
|
||||
|
|
@ -536,7 +536,7 @@ const char* quote(char prefix, const char* str, char* buffer)
|
|||
goto bail;
|
||||
*p++ = c;
|
||||
break;
|
||||
default:
|
||||
default :
|
||||
/* all the others are quoted with \ */
|
||||
if (p == end)
|
||||
goto bail;
|
||||
|
|
@ -716,6 +716,7 @@ void pathslash(char* dst, size_t size)
|
|||
void pathcut(char* dst)
|
||||
{
|
||||
char* slash = strrchr(dst, '/');
|
||||
|
||||
if (slash)
|
||||
slash[1] = 0;
|
||||
else
|
||||
|
|
@ -887,6 +888,7 @@ void malloc_counter_inc(size_t inc)
|
|||
static ssize_t malloc_print(int f, const char* str)
|
||||
{
|
||||
ssize_t len = 0;
|
||||
|
||||
while (str[len])
|
||||
++len;
|
||||
return write(f, str, len);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue