From d2ba67e68b6a7e262be4fac31fecf3977494c4a4 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Tue, 11 Nov 2014 00:37:11 +0100 Subject: use ‘signed’ instead of ‘int’, redo prototypes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The flip arguments are implemented so delete comment --- src/yawa.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/yawa.c') diff --git a/src/yawa.c b/src/yawa.c index dce73d7..971cd34 100644 --- a/src/yawa.c +++ b/src/yawa.c @@ -32,7 +32,7 @@ #include "utils.h" #include "config.h" -/* Order of parameters: KEY, ARG, STATE. */ +// Order of parameters: KEY, ARG, STATE. static error_t parse_opt(int key, char *arg, struct argp_state *state) { @@ -146,15 +146,14 @@ static char doc[] = "yawa -- Yet Another Wallpaper Application"; const char *argp_program_version = PACKAGE_STRING; const char *argp_program_bug_address = "<" PACKAGE_BUGREPORT ">"; -/* The ARGP structure itself. */ +// The ARGP structure itself. static struct argp argp = {options, parse_opt, "", doc, NULL, NULL, 0}; // Globals: static Display *display; static int screen; -// Adapted from fluxbox' bsetroot -int +signed set_root_atoms(Pixmap pixmap) { Atom atom_root, atom_eroot, type; @@ -203,7 +202,7 @@ set_root_atoms(Pixmap pixmap) return 1; } -int +signed load_image(ImageMode mode, const char *arg, int rootW, int rootH, int alpha, Imlib_Image rootimg) { @@ -281,7 +280,7 @@ load_image(ImageMode mode, const char *arg, int rootW, int rootH, return 1; } -int +signed main(int argc, char **argv) { struct arguments arguments = { @@ -292,7 +291,7 @@ main(int argc, char **argv) false, }; - /* Where the magic happens */ + // Where the magic happens argp_parse(&argp, argc, argv, 0, 0, &arguments); Visual *vis; -- cgit v1.2.3-54-g00ecf