Skip to content

Commit

Permalink
stream-generic: add a const qualifier
Browse files Browse the repository at this point in the history
  • Loading branch information
mchalupa committed Feb 1, 2024
1 parent fa736a3 commit bf6c967
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/vamos-buffers/streams/stream-generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ typedef struct _vms_stream_generic {
} vms_stream_generic;

vms_stream *vms_create_generic_stream(const char *key, const char *name,
vms_stream_hole_handling *hole_handling);
const vms_stream_hole_handling *hole_handling);

#endif /* SHMN_STREAM_GENERIC_H_ */
2 changes: 1 addition & 1 deletion src/streams/stream-generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ static void generic_alter(vms_stream *stream, vms_event *in, vms_event *out) {
}

vms_stream *vms_create_generic_stream(const char *key, const char *name,
vms_stream_hole_handling *hole_handling) {
const vms_stream_hole_handling *hole_handling) {
vms_stream_generic *ss = malloc(sizeof *ss);
vms_shm_buffer *shmbuffer = vms_shm_buffer_connect(key);
assert(shmbuffer && "Getting the shm buffer failed");
Expand Down

0 comments on commit bf6c967

Please sign in to comment.