aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2009-04-23 15:21:36 +0000
committergotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2009-04-23 15:21:36 +0000
commit44bc4645b6ba937e9eea5c16544125379b609c83 (patch)
treee932435beb3c6838dda916339d9fb90c772ee949
parentd29d0f5319f9bd0aec337899267e6f777aec10bf (diff)
downloaddzen-44bc4645b6ba937e9eea5c16544125379b609c83.tar.gz
dzen-44bc4645b6ba937e9eea5c16544125379b609c83.zip
removed some unnecessary intilizations
corrected space/tab mixup git-svn-id: http://dzen.googlecode.com/svn/trunk@265 f2baff5b-bf2c-0410-a398-912abdc3d8b2
-rw-r--r--dzen.h6
-rw-r--r--main.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/dzen.h b/dzen.h
index 8c3811c..88259fa 100644
--- a/dzen.h
+++ b/dzen.h
@@ -160,13 +160,13 @@ void x_draw_body(void);
extern void drawtext(const char *text,
int reverse,
int line,
- int align);
+ int align);
extern char * parse_line(const char * text,
int linenr,
int align,
int reverse,
int nodraw);
-extern long getcolor(const char *colstr); /* returns color of colstr */
+extern long getcolor(const char *colstr); /* returns color of colstr */
extern void setfont(const char *fontstr); /* sets global font */
extern unsigned int textw(const char *text); /* returns width of text in px */
extern void drawheader(const char *text);
@@ -176,4 +176,4 @@ extern void drawbody(char *text);
extern void *emalloc(unsigned int size); /* allocates memory, exits on error */
extern void eprint(const char *errstr, ...); /* prints errstr and exits with 1 */
extern char *estrdup(const char *str); /* duplicates str, exits on allocation error */
-extern void spawn(const char *arg); /* execute arg */
+extern void spawn(const char *arg); /* execute arg */
diff --git a/main.c b/main.c
index 784ae5f..141b954 100644
--- a/main.c
+++ b/main.c
@@ -293,8 +293,8 @@ queryscreeninfo(Display *dpy, XRectangle *rect, int screen) {
static void
set_docking_ewmh_info(Display *dpy, Window w, int dock) {
- unsigned long strut[12] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
- unsigned long strut_s[4] = { 0, 0, 0, 0 };
+ unsigned long strut[12] = { 0 };
+ unsigned long strut_s[4] = { 0 };
XWindowAttributes wa;
Atom type;
unsigned int desktop;
@@ -1040,7 +1040,7 @@ main(int argc, char *argv[]) {
eprint("usage: dzen2 [-v] [-p [seconds]] [-m [v|h]] [-ta <l|c|r>] [-sa <l|c|r>]\n"
" [-x <pixel>] [-y <pixel>] [-w <pixel>] [-h <pixel>] [-tw <pixel>] [-u]\n"
" [-e <string>] [-l <lines>] [-fn <font>] [-bg <color>] [-fg <color>]\n"
- " [-geometry <geometry string>] [-expand <left|both|right>] [-dock]\n"
+ " [-geometry <geometry string>] [-expand <left|right>] [-dock]\n"
" [-title-name <string>] [-slave-name <string>]\n"
#ifdef DZEN_XINERAMA
" [-xs <screen>]\n"