Source-Changes-HG archive

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

[src/pgoyette-compat]: src/sys/compat/common We don't need to conditionalize ...



details:   https://anonhg.NetBSD.org/src/rev/28067d448055
branches:  pgoyette-compat
changeset: 320975:28067d448055
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Thu Mar 08 08:55:52 2018 +0000

description:
We don't need to conditionalize the code on COMPAT_60 since we'll
only include the source file when COMPAT_60 is requested (either
by kernel option or module specification)

diffstat:

 sys/compat/common/tty_60.c |  8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diffs (33 lines):

diff -r b03bc328b63a -r 28067d448055 sys/compat/common/tty_60.c
--- a/sys/compat/common/tty_60.c        Thu Mar 08 07:04:01 2018 +0000
+++ b/sys/compat/common/tty_60.c        Thu Mar 08 08:55:52 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tty_60.c,v 1.4 2015/10/22 15:18:25 christos Exp $      */
+/*     $NetBSD: tty_60.c,v 1.4.16.1 2018/03/08 08:55:52 pgoyette Exp $ */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tty_60.c,v 1.4 2015/10/22 15:18:25 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tty_60.c,v 1.4.16.1 2018/03/08 08:55:52 pgoyette Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"
@@ -45,8 +45,6 @@
 #include <sys/tty.h>
 #include <compat/sys/ttycom.h>
 
-#ifdef COMPAT_60
-
 /* convert struct ptmget to struct compat_60_ptmget */
 static int
 ptmget_to_ptmget60(struct ptmget *pg, struct compat_60_ptmget *pg60)
@@ -116,5 +114,3 @@
                return EPASSTHROUGH;
        }
 }
-
-#endif /* COMPAT_60 */



Home | Main Index | Thread Index | Old Index