aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2015-12-25 21:58:16 +0000
committerHarry Jeffery <harry@exec64.co.uk>2015-12-25 21:58:16 +0000
commit3ae2fd34d3a35d9beefe94e719b25fa61e049997 (patch)
treecb47a68c40b6fbe8586aa1e78a149df6b1fd6c7d /src/main.c
parenta01f3b3b1a9ad50e59bd05c4a8e08ae4ad547183 (diff)
parentb07d09fd22fecdbf46b4a7702a58b3767797f94e (diff)
downloadimv-3ae2fd34d3a35d9beefe94e719b25fa61e049997.tar.gz
Merge pull request #63 from czarkoff/stdin
Don't use "stdin" variable name
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index 2248f83..3116f22 100644
--- a/src/main.c
+++ b/src/main.c
@@ -32,7 +32,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
struct {
int fullscreen;
- int stdin;
+ int sin;
int recursive;
int actual;
int nearest_neighbour;
@@ -120,7 +120,7 @@ void parse_args(int argc, char** argv)
switch(o) {
case 'f': g_options.fullscreen = 1; break;
case 'i':
- g_options.stdin = 1;
+ g_options.sin = 1;
fprintf(stderr, "Warning: '-i' is deprecated. Just use '-' instead.\n");
break;
case 'r': g_options.recursive = 1; break;
@@ -174,7 +174,7 @@ int main(int argc, char** argv)
for(int i = optind; i < argc; ++i) {
/* special case: '-' is actually an option */
if(!strcmp("-",argv[i])) {
- g_options.stdin = 1;
+ g_options.sin = 1;
continue;
}
/* add the given path to the list to load */
@@ -182,7 +182,7 @@ int main(int argc, char** argv)
}
/* if the user asked us to load paths from stdin, now is the time */
- if(g_options.stdin) {
+ if(g_options.sin) {
char buf[512];
while(fgets(buf, sizeof(buf), stdin)) {
size_t len = strlen(buf);