[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 4/7] stdlib: putenv() needs a cast on OS/2 kLIBC
From: |
KO Myung-Hun |
Subject: |
Re: [PATCH 4/7] stdlib: putenv() needs a cast on OS/2 kLIBC |
Date: |
Fri, 22 Jan 2021 23:35:50 +0900 |
User-agent: |
Mozilla/5.0 (OS/2; Warp 4.5; rv:10.0.6esrpre) Gecko/20120715 Firefox/10.0.6esrpre SeaMonkey/2.7.2 |
Hi/2, Bruno!
Bruno Haible wrote:
> Hi KO,
>
>> On OS/2 kLIBC, the first parameter of putenv () is `const char *string'
>> not `char *string'.
>
> Can't you fix that in OS/2 kLIBC? Then a workaround in Gnulib would not be
> needed.
>
I have no such a right. Instead I'll suggest that to maintainer.
However, I think, it's more proper that Gnulib has a workaround. Because
Gnulib provides such consistent interfaces and functionality.
BTW, do you know the reason why `char *string' not `const char *string'
? I think, `const char *string' is more proper, because putenv() does
not modify the content of `string'.
Thanks as always!
--
KO Myung-Hun
Using Mozilla SeaMonkey 2.7.2
Under OS/2 Warp 4 for Korean with FixPak #15
In VirtualBox v6.1.10 on Intel Core i7-3615QM 2.30GHz with 8GB RAM
Korean OS/2 User Community : http://www.os2.kr/
- [PATCH 1/7] spawn: Use special invocation for <spawn.h> on OS/2 kLIBC, KO Myung-Hun, 2021/01/18
- [PATCH 2/7] yield: Fix linkage to threadlib on OS/2 kLIBC, KO Myung-Hun, 2021/01/18
- [PATCH 4/7] stdlib: putenv() needs a cast on OS/2 kLIBC, KO Myung-Hun, 2021/01/18
- [PATCH 5/7] zerosize-ptr: Fix compilation on OS/2 kLIBC, KO Myung-Hun, 2021/01/18
- [PATCH 6/7] dirent: Redefine dirfd macro as a rpl function always, KO Myung-Hun, 2021/01/18
- [PATCH 3/7] stddef: Fix compilation for max_align_t on OS/2 kLIBC, KO Myung-Hun, 2021/01/18
- [PATCH 7/7] spawn-pipe: Fix SIGSEGV on OS/2 kLIBC, KO Myung-Hun, 2021/01/18
- Re: [PATCH 1/7] spawn: Use special invocation for <spawn.h> on OS/2 kLIBC, Bruno Haible, 2021/01/19