summaryrefslogtreecommitdiffstats
path: root/XUtils.h
diff options
context:
space:
mode:
authorExplorer09 <explorer09@gmail.com>2024-04-17 16:45:46 +0800
committerBenBE <BenBE@geshi.org>2024-04-17 11:54:00 +0200
commita46b3f0a98c801b94df08598be0127e4d7db2aca (patch)
tree9a0e51e445dbb19685897d225ff847016f9c6761 /XUtils.h
parent6f0adfab242f40e0a0e82445abac4e574c7a97e8 (diff)
Use 'fp' name for local 'FILE*' variables.
It is inappropriate to use the 'fd' name for 'FILE*' variables. POSIX file descriptiors are of type 'int' and are distinguished from ISO C stream pointers (type 'FILE*'). Rename these variables to 'fp', which is a preferred naming in POSIX. (Note that ISO C preferred the 'stream' name for the variables.) No code changes.
Diffstat (limited to 'XUtils.h')
-rw-r--r--XUtils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/XUtils.h b/XUtils.h
index 3703f8bc..093f5005 100644
--- a/XUtils.h
+++ b/XUtils.h
@@ -76,7 +76,7 @@ char** String_split(const char* s, char sep, size_t* n);
void String_freeArray(char** s);
ATTR_NONNULL
-char* String_readLine(FILE* fd) ATTR_MALLOC;
+char* String_readLine(FILE* fp) ATTR_MALLOC;
ATTR_NONNULL
static inline char* String_strchrnul(const char* s, int c) {

© 2014-2024 Faster IT GmbH | imprint | privacy policy