summaryrefslogtreecommitdiffstats
path: root/Compat.c
diff options
context:
space:
mode:
authorExplorer09 <explorer09@gmail.com>2024-04-17 16:50:34 +0800
committerBenBE <BenBE@geshi.org>2024-04-17 11:54:00 +0200
commit7017b86bbfafe14859d0fa94ec89351ee167db9e (patch)
treed08e55b1b7898fa1613ac8071217ac31836d5e43 /Compat.c
parenta46b3f0a98c801b94df08598be0127e4d7db2aca (diff)
Use 'sb' name for local 'struct stat' buffers
Deprecate the use of 'st' and other names. The 'sb' name is often seen in example codes in Linux man pages. (The 'statbuf' name is sometimes also used but I choose 'sb' name because it's shorter.) No code changes.
Diffstat (limited to 'Compat.c')
-rw-r--r--Compat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Compat.c b/Compat.c
index d0ad2cc9..6df0b081 100644
--- a/Compat.c
+++ b/Compat.c
@@ -50,11 +50,11 @@ int Compat_faccessat(int dirfd,
}
// Fallback to stat(2)/lstat(2) depending on flags
- struct stat statinfo;
+ struct stat sb;
if (flags) {
- ret = lstat(pathname, &statinfo);
+ ret = lstat(pathname, &sb);
} else {
- ret = stat(pathname, &statinfo);
+ ret = stat(pathname, &sb);
}
return ret;

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