(esetenv): cast to handle a setenv that takes a `char *var' which is
the case on Unicos git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9513 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2000 Kungliga Tekniska H<>gskolan
|
* Copyright (c) 2000, 2001 Kungliga Tekniska H<>gskolan
|
||||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
@@ -43,6 +43,6 @@ RCSID("$Id$");
|
|||||||
void
|
void
|
||||||
esetenv(const char *var, const char *val, int rewrite)
|
esetenv(const char *var, const char *val, int rewrite)
|
||||||
{
|
{
|
||||||
if (setenv (var, val, rewrite))
|
if (setenv ((char *)var, val, rewrite))
|
||||||
errx (1, "failed setting environment variable %s", var);
|
errx (1, "failed setting environment variable %s", var);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user