1
0
mirror of https://github.com/armink/EasyLogger.git synced 2025-01-31 13:32:52 +08:00

Merge pull request #102 from dubw/master

[demo][linux] fix compile warning about old-style-declaration
This commit is contained in:
朱天龙 (Armink) 2021-11-26 17:17:14 +08:00 committed by GitHub
commit e1fdb134db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,7 @@ ElogErrCode elog_file_port_init(void) {
/**
* file log lock
*/
void inline elog_file_port_lock(void)
inline void elog_file_port_lock(void)
{
semid == -1 ? -1 : semop(semid, (struct sembuf *)&down, 1);
}
@ -81,7 +81,7 @@ void inline elog_file_port_lock(void)
/**
* file log unlock
*/
void inline elog_file_port_unlock(void)
inline void elog_file_port_unlock(void)
{
semid == -1 ? -1 : semop(semid, (struct sembuf *)&up, 1);
}