aboutsummaryrefslogtreecommitdiffstats
path: root/src/yawa.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/yawa.c')
-rw-r--r--src/yawa.c13
1 files changed, 6 insertions, 7 deletions
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;