From: deraadt Date: Mon, 29 May 2017 04:40:35 +0000 (+0000) Subject: do not need dev[] wasting bss space X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2d313e676523ea123d716b2f0aad0d56bdf1892c;p=openbsd do not need dev[] wasting bss space --- 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);