aboutsummaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2024-03-24 19:40:36 +0100
committerCorinna Vinschen <corinna@vinschen.de>2024-03-24 19:40:36 +0100
commit18b8a104acd63dd81298fad82e3484bee0dc0434 (patch)
tree52cf144b8a2ff3ef7f13e2e0ad391ca913273d00 /winsup
parentb95ab5982e125918cdaa3342ce41e6b445867a26 (diff)
downloadnewlib-18b8a104acd63dd81298fad82e3484bee0dc0434.zip
newlib-18b8a104acd63dd81298fad82e3484bee0dc0434.tar.gz
newlib-18b8a104acd63dd81298fad82e3484bee0dc0434.tar.bz2
Cygwin: dir_cache::add: constify input string
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/fhandler/netdrive.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler/netdrive.cc b/winsup/cygwin/fhandler/netdrive.cc
index d8dda4c..5bcca53 100644
--- a/winsup/cygwin/fhandler/netdrive.cc
+++ b/winsup/cygwin/fhandler/netdrive.cc
@@ -72,7 +72,7 @@ public:
free (entry);
}
size_t count () const { return num_entries; }
- void add (wchar_t *str, bool downcase = false)
+ void add (const wchar_t *str, bool downcase = false)
{
if (num_entries >= max_entries)
{