mirror of
https://github.com/sheumann/hush.git
synced 2025-03-02 18:29:22 +00:00
- fix warning about discarding qualifiers in initialization
This commit is contained in:
parent
00d7d6cef6
commit
428a5cd0d3
@ -27,7 +27,7 @@
|
|||||||
*/
|
*/
|
||||||
static int valid_name(const struct dirent *d)
|
static int valid_name(const struct dirent *d)
|
||||||
{
|
{
|
||||||
char *c = d->d_name;
|
const char *c = d->d_name;
|
||||||
|
|
||||||
while (*c) {
|
while (*c) {
|
||||||
if (!isalnum(*c) && (*c != '_') && (*c != '-')) {
|
if (!isalnum(*c) && (*c != '_') && (*c != '-')) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user