From: Zbigniew Jędrzejewski-Szmek Date: Thu, 15 May 2025 11:55:11 +0000 (+0200) Subject: basic/terminal-util: drop 'U' suffix X-Git-Tag: v258-rc1~579^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b5545f112126157be3ffd89a70803507456ee71;p=thirdparty%2Fsystemd.git basic/terminal-util: drop 'U' suffix C automatically casts a signed int to unsigned in binary operation with an unsigned int. Thus that suffix is not useful. Also surrounding code doesn't use it. --- diff --git a/src/basic/terminal-util.h b/src/basic/terminal-util.h index d008d0456cf..fa771230ff9 100644 --- a/src/basic/terminal-util.h +++ b/src/basic/terminal-util.h @@ -165,7 +165,7 @@ int pty_open_peer(int fd, int mode); static inline bool osc_char_is_valid(char c) { /* Checks whether the specified character is safe to be included inside an ANSI OSC sequence, as per * ECMA-48 5th edition, section 8.3.89 */ - return (unsigned char) c >= 32U && (unsigned char) c < 127; + return (unsigned char) c >= 32 && (unsigned char) c < 127; } static inline bool vtnr_is_valid(unsigned n) {