File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ Building
2222Usage
2323-----
2424
25- hostsblock [ filterlist]
25+ hostsblock filterlist
2626
2727If the filterlist argument is ` - ` or omitted, hostsblock will read from stdin.
2828For example,
Original file line number Diff line number Diff line change @@ -115,15 +115,15 @@ int main(int argc, char **argv)
115115 char domain [MAX_DOMAIN_LENGTH ] = { 0 };
116116
117117 if (argc > 2 ) {
118- fprintf (stderr , "usage: %s [filterlist] \n" , argv [0 ]);
118+ fprintf (stderr , "usage: %s filter list \n" , argv [0 ]);
119119 return 1 ;
120120 }
121121
122122 if (argc < 2 || !strncmp (argv [1 ], "-" , 2 )) list = stdin ;
123123 else list = fopen (argv [1 ], "r" );
124124
125125 if (list == NULL ) {
126- perror ("error opening list file " );
126+ perror ("error opening filter list " );
127127 return 1 ;
128128 }
129129
@@ -137,7 +137,7 @@ int main(int argc, char **argv)
137137 }
138138
139139 if (ferror (list )) {
140- perror ("error reading list file " );
140+ perror ("error reading filterlist " );
141141 return 1 ;
142142 }
143143
You can’t perform that action at this time.
0 commit comments