summaryrefslogtreecommitdiff
path: root/src/nvidia-settings.c
diff options
context:
space:
mode:
authorAaron Plattner <aplattner@nvidia.com>2013-10-04 08:47:45 -0700
committerAaron Plattner <aplattner@nvidia.com>2013-10-04 08:47:45 -0700
commitdb3b5f655464386838d0c5859cddaf6c4f812979 (patch)
treed0b3a4e3f065eea69098c1f9e931914cdecdaf67 /src/nvidia-settings.c
parent2e80e4fdc20e051090289e4b32d713a7c4f7e14c (diff)
331.13331.13
Diffstat (limited to 'src/nvidia-settings.c')
-rw-r--r--src/nvidia-settings.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/nvidia-settings.c b/src/nvidia-settings.c
index acfa685..bda2b20 100644
--- a/src/nvidia-settings.c
+++ b/src/nvidia-settings.c
@@ -29,6 +29,9 @@
#include <stdlib.h>
+extern int __list_targets;
+
+
int main(int argc, char **argv)
{
ConfigProperties conf;
@@ -119,11 +122,11 @@ int main(int argc, char **argv)
}
/*
- * if the user requested that we only load the config file, then
- * exit now
+ * if the user requested that we only load the config file, or that
+ * we only list the resolved targets, then exit now.
*/
-
- if (op->only_load) {
+
+ if (op->only_load || __list_targets) {
return ret ? 0 : 1;
}