diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2012-03-11 21:05:57 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-03-12 01:28:50 -0400 |
commit | bcacef19b032d1162120c4a48412bb62b90ad61c (patch) | |
tree | 07b3ca56da1946d99e79258d4bab9276ef1e05bd /clients/gears.c | |
parent | 22ba60e514e074e4bdee1529aa8d22600712f001 (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/gears.c')
-rw-r--r-- | clients/gears.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clients/gears.c b/clients/gears.c index 2353837..1aecd45 100644 --- a/clients/gears.c +++ b/clients/gears.c @@ -369,7 +369,7 @@ int main(int argc, char *argv[]) { struct display *d; - d = display_create(&argc, &argv, NULL); + d = display_create(argc, argv); if (d == NULL) { fprintf(stderr, "failed to create display: %m\n"); return -1; |