--- linuxsampler/trunk/scripts/generate_lscp_shell_reference.pl 2016/12/14 17:34:54 3052 +++ linuxsampler/trunk/scripts/generate_lscp_shell_reference.pl 2016/12/15 12:47:45 3054 @@ -10,7 +10,7 @@ # Then src/network/lscp_shell_reference.cpp is generated by this script with # the documentation for each individual LSCP command extracted. # -# Usage: generate_lscp_shell_reference.pl +# Usage: generate_lscp_shell_reference.pl [--output=OUTFILE] [--debug-xml-extract] use XML::Parser; use Data::Dumper; # just for debugging @@ -278,7 +278,7 @@ * * * LSCP documentation reference built into LSCP shell. * * * - * Copyright (c) 2014 Christian Schoenebeck * + * Copyright (c) 2014 - 2016 Christian Schoenebeck * * * * This program is part of LinuxSampler and released under the same terms. * * * @@ -320,12 +320,12 @@ }; lscp_ref_entry_t* lscp_reference_for_command(const char* cmd) { - const int n1 = strlen(cmd); + const int n1 = (int)strlen(cmd); if (!n1) return NULL; int foundLength = 0; lscp_ref_entry_t* foundEntry = NULL; for (int i = 0; i < sizeof(lscp_reference) / sizeof(lscp_ref_entry_t); ++i) { - const int n2 = strlen(lscp_reference[i].name); + const int n2 = (int)strlen(lscp_reference[i].name); const int n = n1 < n2 ? n1 : n2; if (!strncmp(cmd, lscp_reference[i].name, n)) { if (foundEntry) {