summaryrefslogtreecommitdiffstats
path: root/lib/pager.c
diff options
context:
space:
mode:
authorSami Kerola2013-06-02 19:51:07 +0200
committerKarel Zak2013-06-07 12:24:40 +0200
commitd722ce211a068d9d6610c1cc5a518357284ef40e (patch)
treeac34f490bbab9147ea2b8f791e1c0b3706222c81 /lib/pager.c
parentdocs: slightly correct the man page of column (diff)
downloadkernel-qcow2-util-linux-d722ce211a068d9d6610c1cc5a518357284ef40e.tar.gz
kernel-qcow2-util-linux-d722ce211a068d9d6610c1cc5a518357284ef40e.tar.xz
kernel-qcow2-util-linux-d722ce211a068d9d6610c1cc5a518357284ef40e.zip
lib: remove unused code
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'lib/pager.c')
-rw-r--r--lib/pager.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/pager.c b/lib/pager.c
index 5cf8c03b5..c6e74e899 100644
--- a/lib/pager.c
+++ b/lib/pager.c
@@ -40,16 +40,6 @@ static inline void close_pair(int fd[2])
close(fd[1]);
}
-static inline void dup_devnull(int to)
-{
- int fd = open(NULL_DEVICE, O_RDWR);
-
- if (fd < 0)
- err(EXIT_FAILURE, _("cannot open %s"), NULL_DEVICE);
- dup2(fd, to);
- close(fd);
-}
-
static int start_command(struct child_process *cmd)
{
int need_in;