Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/ktruss Make ktruss compile again after recent change...



details:   https://anonhg.NetBSD.org/src/rev/5d8c76bdc50a
branches:  trunk
changeset: 555499:5d8c76bdc50a
user:      gson <gson%NetBSD.org@localhost>
date:      Wed Nov 19 05:20:50 2003 +0000

description:
Make ktruss compile again after recent change to kdump/setemul.h.

diffstat:

 usr.bin/ktruss/dump.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (32 lines):

diff -r 58ba23e429d0 -r 5d8c76bdc50a usr.bin/ktruss/dump.c
--- a/usr.bin/ktruss/dump.c     Wed Nov 19 04:14:07 2003 +0000
+++ b/usr.bin/ktruss/dump.c     Wed Nov 19 05:20:50 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dump.c,v 1.16 2003/09/23 18:46:33 matt Exp $   */
+/*     $NetBSD: dump.c,v 1.17 2003/11/19 05:20:50 gson Exp $   */
 
 /*-
  * Copyright (c) 1988, 1993
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)kdump.c    8.4 (Berkeley) 4/28/95";
 #endif
-__RCSID("$NetBSD: dump.c,v 1.16 2003/09/23 18:46:33 matt Exp $");
+__RCSID("$NetBSD: dump.c,v 1.17 2003/11/19 05:20:50 gson Exp $");
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -296,11 +296,11 @@
                bzero(bp, BLEFT);
        }
        if (!nohdr) {
-               if (ktr->ktr_code >= current->nsysnames || ktr->ktr_code < 0)
+               if (ktr->ktr_code >= cur_emul->nsysnames || ktr->ktr_code < 0)
                        (void)snprintf(bp, BLEFT, "[%d]", ktr->ktr_code);
                else
                        (void)snprintf(bp, BLEFT,
-                                      "%s", current->sysnames[ktr->ktr_code]);
+                                      "%s", cur_emul->sysnames[ktr->ktr_code]);
                bp += strlen(bp);
        }
        ap = (register_t *)((char *)ktr + sizeof(struct ktr_syscall));



Home | Main Index | Thread Index | Old Index