summaryrefslogtreecommitdiffstats
path: root/login.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-01-29 20:55:09 +1100
committerDamien Miller <djm@mindrot.org>2000-01-29 20:55:09 +1100
commit6034fdfd1f5382bf56dee5a7ee5b9e41b52c5240 (patch)
tree811b8039cee9f9b01c3c98df6c273ea3afaacde6 /login.c
parentf07390e90da683fecbf55849a3cee6dc9b79a3e3 (diff)
- Compile fix from Andre Lucas <andre.lucas@dial.pipex.com>
Diffstat (limited to 'login.c')
-rw-r--r--login.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/login.c b/login.c
index 485b9d5e..54d44205 100644
--- a/login.c
+++ b/login.c
@@ -18,7 +18,7 @@
*/
#include "includes.h"
-RCSID("$Id: login.c,v 1.20 2000/01/26 00:04:48 damien Exp $");
+RCSID("$Id: login.c,v 1.21 2000/01/29 09:55:10 damien Exp $");
#if defined(HAVE_UTMPX_H) && defined(USE_UTMPX)
# include <utmpx.h>
@@ -210,7 +210,7 @@ record_login(int pid, const char *ttyname, const char *user, uid_t uid,
# endif /* HAVE_SYSLEN_IN_UTMPX */
# endif
#if defined(HAVE_ADDR_IN_UTMPX)
- if (addr)
+ if (addr) {
switch (addr->sa_family) {
case AF_INET: {
struct sockaddr_in *in = (struct sockaddr_in*)addr;