diff --git a/config.def.h b/config.def.h index 748deec..3d68f05 100644 --- a/config.def.h +++ b/config.def.h @@ -7,6 +7,5 @@ static const char * const TTY_DEVICE_BASE = "/dev/tty"; /* full path to kernel sysrq control file: */ static const char * const SYSRQ_PATH = "/proc/sys/kernel/sysrq"; -/* full path to kernel printk file: */ +/* full path to kernel printk file: */ static const char * const PRINTK_PATH = "/proc/sys/kernel/printk"; - diff --git a/main.c b/main.c index 31056bc..6d6133c 100644 --- a/main.c +++ b/main.c @@ -98,7 +98,7 @@ void setup_signal(int signum, void (*handler)(int)) { sigact.sa_flags = 0; sigact.sa_handler = handler; sigemptyset(&sigact.sa_mask); - + if (sigaction(signum, &sigact, NULL) < 0) error(0, errno, "signal %d", signum); } @@ -220,4 +220,3 @@ int main(int argc, char **argv) { return 0; } - diff --git a/options.c b/options.c index 6ec3634..03227a4 100644 --- a/options.c +++ b/options.c @@ -37,7 +37,7 @@ void print_version() { void parse_options(int argc, char **argv) { int opt; - + progname = strrchr(argv[0], '/'); progname = progname != NULL ? progname + 1 : argv[0]; @@ -78,4 +78,3 @@ void parse_options(int argc, char **argv) { } } } - diff --git a/physlock.1 b/physlock.1 index 32e8547..2c0d95b 100644 --- a/physlock.1 +++ b/physlock.1 @@ -54,6 +54,6 @@ Print version information to standard output and exit. Bert Muennich .SH HOMEPAGE .TP -http://github.com/muennich/physlock +https://github.com/muennich/physlock .SH SEE ALSO .BR vlock (1) diff --git a/physlock.h b/physlock.h index 0eb42ee..1d73f1c 100644 --- a/physlock.h +++ b/physlock.h @@ -100,4 +100,3 @@ void vt_secure(vt_t*); CLEANUP void vt_reset(vt_t*); #endif /* PHYSLOCK_H */ - diff --git a/session.c b/session.c index eb1a525..ec5afb8 100644 --- a/session.c +++ b/session.c @@ -80,4 +80,3 @@ int get_user_utmp(userinfo_t *uinfo, int vt) { } return ret; } - diff --git a/util.c b/util.c index 3733aee..1ffcdc2 100644 --- a/util.c +++ b/util.c @@ -138,4 +138,3 @@ CLEANUP ssize_t write_int_to_file(const char *path, int value) { snprintf(buf, sizeof(buf), "%d\n", value); return write_file(path, buf, strlen(buf)); } - diff --git a/vt.c b/vt.c index 648b6a0..38e30ef 100644 --- a/vt.c +++ b/vt.c @@ -60,7 +60,7 @@ void vt_get_current(int *nr, uid_t *owner) { CLEANUP int vt_lock_switch(int set) { int ret; - + if (set) { while ((ret = ioctl(fd, VT_LOCKSWITCH, 1)) == -1 && errno == EINTR); if (ret == -1) @@ -152,4 +152,3 @@ CLEANUP void vt_reset(vt_t *vt) { fprintf(vt->ios, "\033[H\033[J"); /* clear the screen */ tcsetattr(vt->fd, TCSANOW, &vt->term_orig); } -