aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2017-06-06 20:35:43 +0100
committerHarry Jeffery <harry@exec64.co.uk>2017-06-06 20:35:43 +0100
commiteb0b93b8e28f8b885f60d53f011357324a3a4d94 (patch)
treebd41e7d30c87f0b572f7a974d0e8e8f5b0f8eb95 /src
parenteff4ee3fb359d747610ee706e904c8914841a6ba (diff)
downloadimv-eb0b93b8e28f8b885f60d53f011357324a3a4d94.tar.gz
check_stdin_for_paths shouldn't be public
Diffstat (limited to 'src')
-rw-r--r--src/imv.c4
-rw-r--r--src/imv.h2
2 files changed, 2 insertions, 4 deletions
diff --git a/src/imv.c b/src/imv.c
index 0e37e20..a0b23d7 100644
--- a/src/imv.c
+++ b/src/imv.c
@@ -296,7 +296,7 @@ bool imv_parse_args(struct imv *imv, int argc, char **argv)
return true;
}
-void imv_check_stdin_for_paths(struct imv *imv)
+static void check_stdin_for_paths(struct imv *imv)
{
/* check stdin to see if we've been given any new paths to load */
if(poll(&imv->stdin_fd, 1, 10) != 1 || imv->stdin_fd.revents & (POLLERR|POLLNVAL)) {
@@ -473,7 +473,7 @@ bool imv_run(struct imv *imv)
if(imv->paths_from_stdin) {
/* check stdin for any more paths */
- imv_check_stdin_for_paths(imv);
+ check_stdin_for_paths(imv);
} else {
/* sleep a little bit so we don't waste CPU time */
SDL_Delay(10);
diff --git a/src/imv.h b/src/imv.h
index 0538ca7..0945fe2 100644
--- a/src/imv.h
+++ b/src/imv.h
@@ -27,8 +27,6 @@ void imv_free(struct imv *imv);
bool imv_parse_args(struct imv *imv, int argc, char **argv);
-void imv_check_stdin_for_paths(struct imv *imv);
-
void imv_add_path(struct imv *imv, const char *path);
bool imv_run(struct imv *imv);