mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
fs: Add g_ prefix for all global file_operations instances
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Alin Jerpelea
parent
308b93b168
commit
51dc67ad5f
@@ -48,7 +48,7 @@ static ssize_t syslog_chardev_write(FAR struct file *filep,
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
static const struct file_operations syslog_fops =
|
||||
static const struct file_operations g_syslog_fops =
|
||||
{
|
||||
NULL, /* open */
|
||||
NULL, /* close */
|
||||
@@ -91,7 +91,7 @@ static ssize_t syslog_chardev_write(FAR struct file *filep,
|
||||
|
||||
void syslog_register(void)
|
||||
{
|
||||
register_driver("/dev/log", &syslog_fops, 0222, NULL);
|
||||
register_driver("/dev/log", &g_syslog_fops, 0222, NULL);
|
||||
}
|
||||
|
||||
#endif /* CONFIG_SYSLOG_CHARDEV */
|
||||
|
||||
Reference in New Issue
Block a user