diff --git a/drivers/pipes/fifo.c b/drivers/pipes/fifo.c index f629c6e3da..61010d3a1e 100644 --- a/drivers/pipes/fifo.c +++ b/drivers/pipes/fifo.c @@ -39,7 +39,7 @@ * Private Data ****************************************************************************/ -static const struct file_operations fifo_fops = +static const struct file_operations g_fifo_fops = { pipecommon_open, /* open */ pipecommon_close, /* close */ @@ -104,7 +104,7 @@ int nx_mkfifo(FAR const char *pathname, mode_t mode, size_t bufsize) return -ENOMEM; } - ret = register_driver(pathname, &fifo_fops, mode, (FAR void *)dev); + ret = register_driver(pathname, &g_fifo_fops, mode, (FAR void *)dev); if (ret != 0) { pipecommon_freedev(dev); diff --git a/drivers/pipes/pipe.c b/drivers/pipes/pipe.c index 14d0529297..96599dd0e7 100644 --- a/drivers/pipes/pipe.c +++ b/drivers/pipes/pipe.c @@ -59,7 +59,7 @@ static int pipe_close(FAR struct file *filep); * Private Data ****************************************************************************/ -static const struct file_operations pipe_fops = +static const struct file_operations g_pipe_fops = { pipecommon_open, /* open */ pipe_close, /* close */ @@ -193,7 +193,7 @@ static int pipe_register(size_t bufsize, int flags, /* Register the pipe device */ - ret = register_driver(devname, &pipe_fops, 0666, (FAR void *)dev); + ret = register_driver(devname, &g_pipe_fops, 0666, (FAR void *)dev); if (ret != 0) { nxsem_post(&g_pipesem);