Browse Source

delete volatile intended to silence whiny old compilers around vfork.

This variable is only used in the parent context so there is no issue.
ok kettenis
OPENBSD_6_4
deraadt 6 years ago
parent
commit
68d7aa0670
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/lib/libutil/passwd.c

+ 2
- 2
src/lib/libutil/passwd.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: passwd.c,v 1.54 2015/04/24 21:13:56 millert Exp $ */
/* $OpenBSD: passwd.c,v 1.55 2018/08/10 17:03:26 deraadt Exp $ */
/* /*
* Copyright (c) 1987, 1993, 1994, 1995 * Copyright (c) 1987, 1993, 1994, 1995
@ -212,7 +212,7 @@ pw_edit(int notsetuid, const char *filename)
{ {
int pstat; int pstat;
char *p; char *p;
char * volatile editor;
char *editor;
char *argp[] = {"sh", "-c", NULL, NULL}; char *argp[] = {"sh", "-c", NULL, NULL};
if (!filename) { if (!filename) {


Loading…
Cancel
Save