aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-08-27 18:26:03 +0200
committerMattias Andrée <maandree@kth.se>2016-08-27 18:26:03 +0200
commit737471d6da8538f3aedd6f3a41c9e6aa3b340cb7 (patch)
tree2eb7d3ae312399405be8cdd08730b7ab27f454ec /src
parentdoc (diff)
downloadcg-tools-737471d6da8538f3aedd6f3a41c9e6aa3b340cb7.tar.gz
cg-tools-737471d6da8538f3aedd6f3a41c9e6aa3b340cb7.tar.bz2
cg-tools-737471d6da8538f3aedd6f3a41c9e6aa3b340cb7.tar.xz
...
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src')
-rw-r--r--src/cg-icc.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/cg-icc.c b/src/cg-icc.c
index 5493f82..6d18dd4 100644
--- a/src/cg-icc.c
+++ b/src/cg-icc.c
@@ -50,6 +50,13 @@ char* const default_class = PKGNAME "::cg-icc::standard";
/**
+ * The panhame of the selected ICC profile
+ */
+static const char* icc_filepath = NULL;
+
+
+
+/**
* Print usage information and exit
*/
void usage(void)
@@ -121,9 +128,9 @@ int handle_args(int argc, char* argv[], char* method, char* site,
q += (rule != NULL) && (!strcmp(rule, "?") || !strcmp(rule, "??"));
for (; *crtcs; crtcs++)
q += !strcmp(*crtcs, "?");
- if ((q > 1) || (xflag && ((argc > 0) || (prio != NULL))))
+ if ((q > 1) || (xflag && ((argc > 0) || (prio != NULL))) || (argc > 1))
usage();
- /* TODO */
+ icc_filepath = *argv;
return 0;
fail:
saved_errno = errno;