indent --no-tabs -linux

This commit is contained in:
Sascha Kruse 2012-08-14 23:59:40 +02:00
parent fa6f7e24c0
commit 4a5778ec2f

15
dunst.c
View File

@ -26,7 +26,6 @@
#include "ini.h"
#include "utils.h"
#define INRECT(x,y,rx,ry,rw,rh) ((x) >= (rx) && (x) < (rx)+(rw) && (y) >= (ry) && (y) < (ry)+(rh))
#define LENGTH(X) (sizeof X / sizeof X[0])
#define MIN(a,b) ((a) < (b) ? (a) : (b))
@ -112,7 +111,6 @@ void warn(const char * text, int urg);
void init_shortcut(keyboard_shortcut * shortcut);
KeySym string_to_mask(char *str);
static int GrabKeyXErrorHandler(Display * display, XErrorEvent * e)
{
dunst_grab_key_errored = True;
@ -142,7 +140,6 @@ int grab_key(keyboard_shortcut *ks)
XGrabKey(dc->dpy, ks->code, ks->mask, root,
True, GrabModeAsync, GrabModeAsync);
XFlush(dc->dpy);
XSync(dc->dpy, False);
@ -364,7 +361,8 @@ void update_lists()
}
}
int next_split(char *source, int max_width) {
int next_split(char *source, int max_width)
{
int last_word = 0;
for (int i = 0; i < strlen(source); i++) {
if (isspace(source[i])) {
@ -421,8 +419,7 @@ void fill_notification_buffer(notification * n, notification_buffer * buf)
size -= snprintf(end, size, " (%dm %ds old)",
minutes, seconds);
} else {
size -=
snprintf(end, size, " (%ds old)", seconds);
size -= snprintf(end, size, " (%ds old)", seconds);
}
}
if (size <= 0)
@ -502,7 +499,6 @@ void draw_win(void)
width = scr.dim.w;
}
/* calculate dc_height */
if (word_wrap) {
for (int i = 0; i < height; i++) {
@ -997,7 +993,6 @@ int is_idle(void)
return screensaver_info->idle / 1000 > idle_threshold;
}
void run(void)
{
while (True) {
@ -1605,9 +1600,9 @@ int main(int argc, char *argv[])
color_strings[ColBG][CRIT] = critbgcolor;
setup();
if (depricated_mod)
warn("-mod is depricated. Use \"-key mod+key\" instead\n", CRIT);
warn("-mod is depricated. Use \"-key mod+key\" instead\n",
CRIT);
if (depricated_dunstrc_shortcuts)
warn("You are using depricated settings. Please update your dunstrc. SEE [shortcuts]", CRIT);
run();