Closed ramdahal closed 6 years ago
Although that gets rid of the warning (thanks!) the proper way to do this would be to change char to const char where the function is prototyped and where it is defined.
char
const char
https://github.com/andy5995/htdig/blob/5c7e6b3de90c0a6c39780f3ca6a915ffca31533a/httools/htpurge.cc#L48 https://github.com/andy5995/htdig/blob/5c7e6b3de90c0a6c39780f3ca6a915ffca31533a/httools/htpurge.cc#L395
Once that's done, no changes near L193 are necessary, so the ones you made can be reversed.
Although that gets rid of the warning (thanks!) the proper way to do this would be to change
char
toconst char
where the function is prototyped and where it is defined.https://github.com/andy5995/htdig/blob/5c7e6b3de90c0a6c39780f3ca6a915ffca31533a/httools/htpurge.cc#L48 https://github.com/andy5995/htdig/blob/5c7e6b3de90c0a6c39780f3ca6a915ffca31533a/httools/htpurge.cc#L395
Once that's done, no changes near L193 are necessary, so the ones you made can be reversed.