From 2d313e676523ea123d716b2f0aad0d56bdf1892c Mon Sep 17 00:00:00 2001 From: deraadt Date: Mon, 29 May 2017 04:40:35 +0000 Subject: [PATCH] do not need dev[] wasting bss space --- libexec/getty/main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libexec/getty/main.c b/libexec/getty/main.c index ff33fc71936..b55bd1a3846 100644 --- a/libexec/getty/main.c +++ b/libexec/getty/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.47 2017/05/28 08:51:06 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.48 2017/05/29 04:40:35 deraadt Exp $ */ /*- * Copyright (c) 1980, 1993 @@ -65,7 +65,6 @@ char hostname[HOST_NAME_MAX+1]; char globalhostname[HOST_NAME_MAX+1]; struct utsname kerninfo; char name[LOGIN_NAME_MAX]; -char dev[] = _PATH_DEV; char ttyn[32]; char *portselector(void); @@ -195,7 +194,7 @@ main(int argc, char *argv[]) } else { int i; - snprintf(ttyn, sizeof ttyn, "%s%s", dev, argv[2]); + snprintf(ttyn, sizeof ttyn, "%s%s", _PATH_DEV, argv[2]); if (strcmp(argv[0], "+") != 0) { chown(ttyn, 0, 0); chmod(ttyn, 0600); -- 2.20.1