Merge pull request #102 from dubw/master

[demo][linux] fix compile warning about old-style-declaration
pull/108/head
朱天龙 (Armink) 4 years ago committed by GitHub
commit e1fdb134db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save