mirror of
https://github.com/troglobit/finit.git
synced 2026-10-30 12:50:34 +00:00
Streamline plugin include files plugin.h, svc.h, and helpers.h
Move utility macros from finit.h to helpers.h and continue refactoring and streamlining of public plugin API. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
ff73dab447
commit
06759d3544
6 files changed
+51
-52
No files matched your search
@@ -72,10 +72,8 @@ static inline svc_t *finit_svc_connect(void)
|
||||
|
||||
if ((void *)-1 == ptr) {
|
||||
ptr = shmat (shmget (ID, sizeof(svc_t) * MAX_NUM_SVC, 0600 | IPC_CREAT), NULL, 0);
|
||||
if ((void *)-1 == ptr) {
|
||||
_d("Failed allocating shared memory, error %d: %s", errno, strerror (errno));
|
||||
if ((void *)-1 == ptr)
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
return (svc_t *)ptr;
|
||||
|
||||
Reference in new issue
Block a user