From cbe6d11cf0ad6c9631c5adcbcf6f4bfb358c9304 Mon Sep 17 00:00:00 2001 From: Michael Schlottke-Lakemper Date: Thu, 16 Mar 2023 14:58:08 +0100 Subject: [PATCH] Fix indentation --- src/t8_windows.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/t8_windows.h b/src/t8_windows.h index 69246df4b1..7dfc42dd78 100644 --- a/src/t8_windows.h +++ b/src/t8_windows.h @@ -39,14 +39,14 @@ * * Source: https://github.com/arnavyc/getdelim/blob/0129a33c182b46e62b3137623a5569449fd3cc94/include/ay/getdelim.h */ -static ssize_t -getdelim(char **lineptr, size_t *n, int delimiter, FILE *stream) +static ssize_t +getdelim (char **lineptr, size_t *n, int delimiter, FILE *stream) { - int initial_buffer_size = 1024; - int c; - size_t pos; - size_t new_size; - char *new_ptr; + int initial_buffer_size = 1024; + int c; + size_t pos; + size_t new_size; + char *new_ptr; if (lineptr == NULL || stream == NULL || n == NULL) { return -1; @@ -81,7 +81,7 @@ getdelim(char **lineptr, size_t *n, int delimiter, FILE *stream) *lineptr = new_ptr; } - ((unsigned char *)(*lineptr))[pos++] = c; + ((unsigned char *) (*lineptr))[pos++] = c; if (c == delimiter) { break; } @@ -102,21 +102,21 @@ getdelim(char **lineptr, size_t *n, int delimiter, FILE *stream) * * Source: https://github.com/arnavyc/getdelim/blob/0129a33c182b46e62b3137623a5569449fd3cc94/include/ay/getdelim.h */ -static ssize_t +static ssize_t getline (char **lineptr, size_t *n, FILE *stream) { - return getdelim(lineptr, n, '\n', stream); + return getdelim (lineptr, n, '\n', stream); } /** Extract token from string up to a given delimiter. * * For a full description see https://linux.die.net/man/3/strsep */ -static char * +static char * strsep (char **stringp, const char *delim) { - char *current; - char *original = *stringp; + char *current; + char *original = *stringp; if (*stringp == NULL) { return NULL;