code-style: whitespace fixes

This commit is contained in:
Hiltjo Posthuma
2015-09-06 22:33:41 +02:00
committed by sin
parent 51009a9600
commit 53be158979
5 changed files with 22 additions and 15 deletions

View File

@@ -1,21 +1,23 @@
#include <sys/types.h>
#include <regex.h>
#include <stdio.h>
#include <sys/types.h>
#include "../util.h"
int
enregcomp(int status, regex_t *preg, const char *regex, int cflags)
{
char errbuf[BUFSIZ] = "";
int r;
char errbuf[BUFSIZ] = "";
int r;
if((r = regcomp(preg, regex, cflags)) == 0)
return r;
if ((r = regcomp(preg, regex, cflags)) == 0)
return r;
regerror(r, preg, errbuf, sizeof(errbuf));
enprintf(status, "invalid regex: %s\n", errbuf);
return r;
regerror(r, preg, errbuf, sizeof(errbuf));
enprintf(status, "invalid regex: %s\n", errbuf);
return r;
}
int