diff options
author | Ed Schouten <ed@80386.nl> | 2011-06-26 10:15:59 +0200 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-06-26 09:30:31 -0700 |
commit | 92d2628e3b1db4b0217d91d532e21018371445bc (patch) | |
tree | 3c23b40a4c8f1cbe3fe218fc9668a0dcfb819935 /sessreg.c | |
parent | 38dd87854f106f6d7a3c8bd8916b65c0d1a87697 (diff) |
Fix whitespace inconsistencies.
Signed-off-by: Ed Schouten <ed@80386.nl>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'sessreg.c')
-rw-r--r-- | sessreg.c | 17 |
1 files changed, 8 insertions, 9 deletions
@@ -72,11 +72,10 @@ #include "sessreg.h" -# include <X11/Xos.h> -# include <X11/Xfuncs.h> -# include <stdio.h> -# include <stdlib.h> - +#include <X11/Xos.h> +#include <X11/Xfuncs.h> +#include <stdio.h> +#include <stdlib.h> #include <time.h> #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) |