summaryrefslogtreecommitdiff
path: root/clients/desktop-shell.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2012-03-11 21:05:57 -0400
committerKristian Høgsberg <krh@bitplanet.net>2012-03-12 01:28:50 -0400
commitbcacef19b032d1162120c4a48412bb62b90ad61c (patch)
tree07b3ca56da1946d99e79258d4bab9276ef1e05bd /clients/desktop-shell.c
parent22ba60e514e074e4bdee1529aa8d22600712f001 (diff)
Add an option parser
On one hand, getopt (in particular the -o suboption syntax) sucks on the server side, and on the client side we would like to avoid the glib dependency. We can roll out own option parser and solve both problems and save a few lines of code total.
Diffstat (limited to 'clients/desktop-shell.c')
-rw-r--r--clients/desktop-shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clients/desktop-shell.c b/clients/desktop-shell.c
index 15dc7ac..881bf7c 100644
--- a/clients/desktop-shell.c
+++ b/clients/desktop-shell.c
@@ -707,7 +707,7 @@ int main(int argc, char *argv[])
desktop.unlock_task.run = unlock_dialog_finish;
wl_list_init(&desktop.outputs);
- desktop.display = display_create(&argc, &argv, NULL);
+ desktop.display = display_create(argc, argv);
if (desktop.display == NULL) {
fprintf(stderr, "failed to create display: %m\n");
return -1;