Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/usr.bin/rwho pull up rev 1.12 from trunk (requested by ...
details: https://anonhg.NetBSD.org/src/rev/0720ee298c53
branches: netbsd-1-4
changeset: 469540:0720ee298c53
user: cgd <cgd%NetBSD.org@localhost>
date: Sat Oct 09 19:12:14 1999 +0000
description:
pull up rev 1.12 from trunk (requested by tron):
Use full hostnames when sorting rwho database entries. Fixes PR#8401.
diffstat:
usr.bin/rwho/rwho.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r 3dbd52a9274c -r 0720ee298c53 usr.bin/rwho/rwho.c
--- a/usr.bin/rwho/rwho.c Sat Oct 09 19:09:26 1999 +0000
+++ b/usr.bin/rwho/rwho.c Sat Oct 09 19:12:14 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rwho.c,v 1.11 1998/12/19 21:52:00 christos Exp $ */
+/* $NetBSD: rwho.c,v 1.11.2.1 1999/10/09 19:12:14 cgd Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -41,7 +41,7 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)rwho.c 8.1 (Berkeley) 6/6/93";*/
-__RCSID("$NetBSD: rwho.c,v 1.11 1998/12/19 21:52:00 christos Exp $");
+__RCSID("$NetBSD: rwho.c,v 1.11.2.1 1999/10/09 19:12:14 cgd Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -196,8 +196,9 @@
rc = strncmp(u1->myutmp.out_name, u2->myutmp.out_name, 8);
if (rc)
return (rc);
- rc = strncmp(u1->myhost, u2->myhost, 8);
+ rc = strcmp(u1->myhost, u2->myhost);
if (rc)
return (rc);
return (strncmp(u1->myutmp.out_line, u2->myutmp.out_line, 8));
}
+
Home |
Main Index |
Thread Index |
Old Index