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:
Joachim Nilsson committed 2012-09-27 22:10:07 +02:00
1 parent ff73dab447
commit 06759d3544
6 files changed
+51 -52

No files matched your search

+1 -3
View File
@@ -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;