diff options
| author | Anselm R.Garbe <arg@10ksloc.org> | 2006-08-21 07:33:18 +0200 |
|---|---|---|
| committer | Anselm R.Garbe <arg@10ksloc.org> | 2006-08-21 07:33:18 +0200 |
| commit | 08d85d6d66bc4493414d76e470e473fa689c5990 (patch) | |
| tree | b2acefe4464fc9ec7883c3a1db3af6b264db171d | |
| parent | small changes to dwm.1, rearranged order within main event loop (diff) | |
| download | dwm-08d85d6d66bc4493414d76e470e473fa689c5990.tar.gz dwm-08d85d6d66bc4493414d76e470e473fa689c5990.zip | |
small renamings of two static functions
| -rw-r--r-- | main.c | 4 | ||||
| -rw-r--r-- | util.c | 6 |
2 files changed, 5 insertions, 5 deletions
| @@ -63,7 +63,7 @@ scan() | |||
| 63 | } | 63 | } |
| 64 | 64 | ||
| 65 | static int | 65 | static int |
| 66 | win_property(Window w, Atom a, Atom t, long l, unsigned char **prop) | 66 | winprop(Window w, Atom a, Atom t, long l, unsigned char **prop) |
| 67 | { | 67 | { |
| 68 | int status, format; | 68 | int status, format; |
| 69 | unsigned long res, extra; | 69 | unsigned long res, extra; |
| @@ -116,7 +116,7 @@ getproto(Window w) | |||
| 116 | long res; | 116 | long res; |
| 117 | Atom *protocols; | 117 | Atom *protocols; |
| 118 | 118 | ||
| 119 | res = win_property(w, wmatom[WMProtocols], XA_ATOM, 20L, | 119 | res = winprop(w, wmatom[WMProtocols], XA_ATOM, 20L, |
| 120 | ((unsigned char **)&protocols)); | 120 | ((unsigned char **)&protocols)); |
| 121 | if(res <= 0) { | 121 | if(res <= 0) { |
| 122 | return protos; | 122 | return protos; |
| @@ -12,7 +12,7 @@ | |||
| 12 | /* static */ | 12 | /* static */ |
| 13 | 13 | ||
| 14 | static void | 14 | static void |
| 15 | bad_malloc(unsigned int size) | 15 | badmalloc(unsigned int size) |
| 16 | { | 16 | { |
| 17 | eprint("fatal: could not malloc() %u bytes\n", size); | 17 | eprint("fatal: could not malloc() %u bytes\n", size); |
| 18 | } | 18 | } |
| @@ -25,7 +25,7 @@ emallocz(unsigned int size) | |||
| 25 | void *res = calloc(1, size); | 25 | void *res = calloc(1, size); |
| 26 | 26 | ||
| 27 | if(!res) | 27 | if(!res) |
| 28 | bad_malloc(size); | 28 | badmalloc(size); |
| 29 | return res; | 29 | return res; |
| 30 | } | 30 | } |
| 31 | 31 | ||
| @@ -45,7 +45,7 @@ erealloc(void *ptr, unsigned int size) | |||
| 45 | { | 45 | { |
| 46 | void *res = realloc(ptr, size); | 46 | void *res = realloc(ptr, size); |
| 47 | if(!res) | 47 | if(!res) |
| 48 | bad_malloc(size); | 48 | badmalloc(size); |
| 49 | return res; | 49 | return res; |
| 50 | } | 50 | } |
| 51 | 51 | ||
