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:
commit
e1fdb134db
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user