From 92d2628e3b1db4b0217d91d532e21018371445bc Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Sun, 26 Jun 2011 10:15:59 +0200 Subject: Fix whitespace inconsistencies. Signed-off-by: Ed Schouten Signed-off-by: Alan Coopersmith --- sessreg.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/sessreg.c b/sessreg.c index 7aad1b6..67c1b6d 100644 --- a/sessreg.c +++ b/sessreg.c @@ -72,11 +72,10 @@ #include "sessreg.h" -# include -# include -# include -# include - +#include +#include +#include +#include #include #ifdef USE_UTMP @@ -486,7 +485,7 @@ set_utmpx (struct utmpx *u, const char *line, const char *user, memset (u->ut_user, 0, sizeof (u->ut_user)); if (line) { - int i; + int i; /* * this is a bit crufty, but * follows the apparent conventions in @@ -570,9 +569,9 @@ Xslot (char *ttys_file, char *servers_file, char *tty_line, char *host_name, strncpy(disp_name, host_name ? host_name : tty_line, sizeof(disp_name)-1); pos = strrchr(disp_name, ':'); if (pos) { - pos = strchr(pos, '.'); - if (pos) - *pos = '\0'; + pos = strchr(pos, '.'); + if (pos) + *pos = '\0'; } sysnerr ((int)(long)(ttys = fopen (ttys_file, "r")), ttys_file); while ((c = getc (ttys)) != EOF) -- cgit v1.2.3