summaryrefslogtreecommitdiff
path: root/app/bin/validator.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2024-11-14 19:35:45 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2024-11-14 19:35:45 +0100
commitdf5520aa2dae5b3ce7abf8733dcdd152898af163 (patch)
tree00d3047bfb14f682bfb5a21010c731ed649bfed7 /app/bin/validator.c
parentdf247efec654e512242e4f4f1b0212034f9e01fe (diff)
parentec3c0f6f6e7153fa797dc57a0e95779cbc63a23b (diff)
Merge branch 'release/debian/1_5.3.0GA-1'debian/1_5.3.0GA-1
Diffstat (limited to 'app/bin/validator.c')
-rw-r--r--app/bin/validator.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/app/bin/validator.c b/app/bin/validator.c
index c415471..88b41fe 100644
--- a/app/bin/validator.c
+++ b/app/bin/validator.c
@@ -17,10 +17,9 @@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
-* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <stdbool.h>
#include "validator.h"
/**
@@ -37,10 +36,10 @@ enum URLSCANSTATE { STATE_SCHEME, STATE_ENDOFSCHEME, STATE_HIER, STATE_PATH, STA
#define MINURLLENGTH 5 /* 2 chars domain name, dot, 2 chars TLD */
bool
-IsValidURL(char *testString)
+IsValidURL(const char *testString)
{
- char *result = testString;
- char *hostname = testString;
+ const char *result = testString;
+ const char *hostname = testString;
enum URLSCANSTATE state = STATE_SCHEME;
if (!*result) {