From 7017b86bbfafe14859d0fa94ec89351ee167db9e Mon Sep 17 00:00:00 2001 From: Explorer09 Date: Wed, 17 Apr 2024 16:50:34 +0800 Subject: 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. --- Compat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Compat.c') 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; -- cgit v1.2.3