aboutsummaryrefslogtreecommitdiff
path: root/center.c
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2022-11-21 18:26:53 +0100
committerThomas Voss <mail@thomasvoss.com> 2022-11-21 18:26:53 +0100
commitf6c80cb11d92559a003d38ffd4ccc5f827e87853 (patch)
tree444ec74db1ad160c01c48d0c295274157fd9fb54 /center.c
parent4d8d85996eb17952b09119e0f8bb5c6e8adf7fa6 (diff)
Formatting changes
Diffstat (limited to 'center.c')
-rw-r--r--center.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/center.c b/center.c
index d412473..a9f64b7 100644
--- a/center.c
+++ b/center.c
@@ -31,7 +31,7 @@
#define ESC 033
-#define die(...) err(EXIT_FAILURE, __VA_ARGS__)
+#define die(...) err(EXIT_FAILURE, __VA_ARGS__)
#define diex(...) errx(EXIT_FAILURE, __VA_ARGS__)
struct line_item {
@@ -45,13 +45,13 @@ static void center(FILE *);
static void center_by_longest(FILE *);
static void println(const char *, size_t);
static long polong(char *, const char *);
-static int cols(void);
-static int utf8len(const char *);
-static int noesclen(const char *);
-static int matchesc(const char *);
-static int cnttabs(const char *);
+static int cols(void);
+static int utf8len(const char *);
+static int noesclen(const char *);
+static int matchesc(const char *);
+static int cnttabs(const char *);
-extern int optind;
+extern int optind;
extern char *optarg;
int rval;
@@ -82,7 +82,7 @@ main(int argc, char **argv)
{"spaces", no_argument, NULL, 'r'},
{"tabsize", required_argument, NULL, 't'},
{"width", required_argument, NULL, 'w'},
- {NULL, 0, NULL, 0 }
+ { NULL, 0, NULL, 0 }
};
while ((opt = getopt_long(argc, argv, optstr, longopts, NULL)) != -1) {
switch (opt) {