diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2014-11-11 00:37:11 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2014-11-11 00:37:11 +0100 |
commit | d2ba67e68b6a7e262be4fac31fecf3977494c4a4 (patch) | |
tree | 2fc16f5640bd8281fbf412124f9a82ac351a3009 /src/yawa.c | |
parent | a856598c95e5820e855f2483a49db5aa5e97176f (diff) | |
download | yawa-d2ba67e68b6a7e262be4fac31fecf3977494c4a4.tar.xz |
use ‘signed’ instead of ‘int’, redo prototypes
The flip arguments are implemented so delete comment
Diffstat (limited to 'src/yawa.c')
-rw-r--r-- | src/yawa.c | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -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; |