--- tools/lirc-lsremotes.cpp.orig	2017-01-17 18:42:58.000000000 +1100
+++ tools/lirc-lsremotes.cpp	2018-05-28 04:03:06.000000000 +1000
@@ -161,7 +161,7 @@ void print_remotes(const char* path)
 }
 
 
-int isdir(const struct dirent* ent)
+int isdir(struct dirent* ent)
 {
 	struct stat statbuf;
 	char buff[256];
@@ -174,7 +174,7 @@ int isdir(const struct dirent* ent)
 
 
 /** Return true if argument defines a lircd.conf file. */
-int isfile(const struct dirent* ent)
+int isfile(struct dirent* ent)
 {
 	const char* dot = strrchr(ent->d_name, '.');
 
