diff --git a/src/include/pv-internal.h b/src/include/pv-internal.h index 0d635a9..1e11f6e 100644 --- a/src/include/pv-internal.h +++ b/src/include/pv-internal.h @@ -60,7 +60,7 @@ extern "C" { /* * Structure for data shared between multiple "pv -c" instances. */ -struct pvcursorstate_s { +struct pvipccursorstate_s { int y_topmost; /* terminal row of topmost "pv" instance */ bool tty_tostop_added; /* whether any instance had to set TOSTOP on the terminal */ }; @@ -340,7 +340,7 @@ struct pvstate_s { struct pvipcstate_s { char lock_file[PV_SIZEOF_CRS_LOCK_FILE]; #ifdef HAVE_IPC - /*@keep@*/ /*@null@*/ struct pvcursorstate_s *shared; /* data shared between instances */ + /*@keep@*/ /*@null@*/ struct pvipccursorstate_s *shared; /* data shared between instances */ int shmid; /* ID of our shared memory segment */ int pvcount; /* number of `pv' processes in total */ int pvmax; /* highest number of `pv's seen */ diff --git a/src/pv/cursor.c b/src/pv/cursor.c index baf28b5..8f47f9a 100644 --- a/src/pv/cursor.c +++ b/src/pv/cursor.c @@ -315,7 +315,7 @@ static int pv_crs_ipcinit(pvstate_t state, char *ttyfile, int terminalfd) return 1; } - state->cursor.shmid = shmget(key, sizeof(struct pvcursorstate_s), 0600 | IPC_CREAT); + state->cursor.shmid = shmget(key, sizeof(struct pvipccursorstate_s), 0600 | IPC_CREAT); if (state->cursor.shmid < 0) { debug("%s: %s", "shmget failed", strerror(errno)); pv_crs_unlock(state, terminalfd);