summaryrefslogtreecommitdiffstats
path: root/gl/strcasecmp.c
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2024-10-31 15:27:12 (GMT)
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2024-10-31 15:27:12 (GMT)
commit5be04ec2ceb1df77afbca4fcbf9e92a712612d6f (patch)
tree2b2e1c71dffae827c8e45cd4cccc375093d03486 /gl/strcasecmp.c
parent6d1d1dac32841d5ca6ee51bb09b30a6c604b17e2 (diff)
downloadmonitoring-plugins-5be04ec2ceb1df77afbca4fcbf9e92a712612d6f.tar.gz
Sync with the latest Gnulib code (d4ec02b3cc)refs/pull/2037/head
Diffstat (limited to 'gl/strcasecmp.c')
-rw-r--r--gl/strcasecmp.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gl/strcasecmp.c b/gl/strcasecmp.c
index 3a5ce3e..7939b40 100644
--- a/gl/strcasecmp.c
+++ b/gl/strcasecmp.c
@@ -1,5 +1,5 @@
1/* Case-insensitive string comparison function. 1/* Case-insensitive string comparison function.
2 Copyright (C) 1998-1999, 2005-2007, 2009-2023 Free Software Foundation, Inc. 2 Copyright (C) 1998-1999, 2005-2007, 2009-2024 Free Software Foundation, Inc.
3 3
4 This file is free software: you can redistribute it and/or modify 4 This file is free software: you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as 5 it under the terms of the GNU Lesser General Public License as
@@ -22,8 +22,6 @@
22#include <ctype.h> 22#include <ctype.h>
23#include <limits.h> 23#include <limits.h>
24 24
25#define TOLOWER(Ch) (isupper (Ch) ? tolower (Ch) : (Ch))
26
27/* Compare strings S1 and S2, ignoring case, returning less than, equal to or 25/* Compare strings S1 and S2, ignoring case, returning less than, equal to or
28 greater than zero if S1 is lexicographically less than, equal to or greater 26 greater than zero if S1 is lexicographically less than, equal to or greater
29 than S2. 27 than S2.
@@ -41,8 +39,8 @@ strcasecmp (const char *s1, const char *s2)
41 39
42 do 40 do
43 { 41 {
44 c1 = TOLOWER (*p1); 42 c1 = tolower (*p1);
45 c2 = TOLOWER (*p2); 43 c2 = tolower (*p2);
46 44
47 if (c1 == '\0') 45 if (c1 == '\0')
48 break; 46 break;