From 7aa651a6a4496d848f86de9b1e6b3a003256a01f Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 13 Nov 2012 17:14:08 -0600 Subject: Reindent to two spaces per level. Remove vi: directives that haven't worked right in years (ubuntu broke its' vim implementation). Remove trailing spaces. Add/remove blank lines. Re-wordwrap in places. Update documentation with new coding style. The actual code should be the same afterward, this is just cosmetic refactoring. --- lib/xregcomp.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'lib/xregcomp.c') diff --git a/lib/xregcomp.c b/lib/xregcomp.c index 732ce4db..ec7d1b79 100644 --- a/lib/xregcomp.c +++ b/lib/xregcomp.c @@ -1,5 +1,4 @@ -/* vi: set ts=4: - * Call regcomp() and handle errors. +/* Call regcomp() and handle errors. * * Copyright 2007 Rob Landley * @@ -12,12 +11,12 @@ void xregcomp(regex_t *preg, char *regex, int cflags) { - int rc = regcomp(preg, regex, cflags); + int rc = regcomp(preg, regex, cflags); - if (rc) { - char msg[256]; - regerror(rc, preg, msg, 255); - msg[255]=0; - error_exit("xregcomp: %s", msg); - } + if (rc) { + char msg[256]; + regerror(rc, preg, msg, 255); + msg[255]=0; + error_exit("xregcomp: %s", msg); + } } -- cgit v1.2.3