[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patch] strerror return value
From: |
Philipp Klaus Krause |
Subject: |
[patch] strerror return value |
Date: |
Tue, 13 Oct 2020 19:19:39 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 |
This is just a very minor issue.
gnulib contains some calls to strerror where the result is assigned
to a char *. However, according to the strerror specification, the
string returned by strerror should never be changed, so it would be
better to use const char * instead.
Most assignments of strerror return values in gnulib actually already
use a const char *.
For the 4 others,see the attached small patch.
Philipp
gnulib-strerror-const.patch
Description: Text Data
- [patch] strerror return value,
Philipp Klaus Krause <=