Ok, after reading all the patch sending guidelines, I can safely think that
this is the correct way to send a mainline patch.
From 9741b826da962558188efd38af37c7f9bdf64cc8 Mon Sep 17 00:00:00 2001
From: Aritz Erkiaga <[email protected]>
Date: Wed, 30 Jan 2019 19:58:12 +0100
Subject: [PATCH] Uniformized parameter names
---
drw.c | 8 ++++----
drw.h | 2 +-
dwm.c | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/drw.c b/drw.c
index c638323..d7cfb59 100644
--- a/drw.c
+++ b/drw.c
@@ -171,11 +171,11 @@ drw_fontset_create(Drw* drw, const char *fonts[], size_t fontcount)
}
void
-drw_fontset_free(Fnt *font)
+drw_fontset_free(Fnt *set)
{
- if (font) {
- drw_fontset_free(font->next);
- xfont_free(font);
+ if (set) {
+ drw_fontset_free(set->next);
+ xfont_free(set);
}
}
diff --git a/drw.h b/drw.h
index 4bcd5ad..c3d4c25 100644
--- a/drw.h
+++ b/drw.h
@@ -27,7 +27,7 @@ typedef struct {
} Drw;
/* Drawable abstraction */
-Drw *drw_create(Display *dpy, int screen, Window win, unsigned int w, unsigned int h);
+Drw *drw_create(Display *dpy, int screen, Window root, unsigned int w, unsigned int h);
void drw_resize(Drw *drw, unsigned int w, unsigned int h);
void drw_free(Drw *drw);
diff --git a/dwm.c b/dwm.c
index 4465af1..35056bf 100644
--- a/dwm.c
+++ b/dwm.c
@@ -208,7 +208,7 @@ static void sigchld(int unused);
static void spawn(const Arg *arg);
static void tag(const Arg *arg);
static void tagmon(const Arg *arg);
-static void tile(Monitor *);
+static void tile(Monitor *m);
static void togglebar(const Arg *arg);
static void togglefloating(const Arg *arg);
static void toggletag(const Arg *arg);
--
2.17.1