From e227de134695d2f83d53435ad3beacfb275ce0d7 Mon Sep 17 00:00:00 2001 From: Johan Malm Date: Sat, 13 Nov 2021 21:56:53 +0000 Subject: [PATCH] Add SPDX identifiers --- include/common/buf.h | 1 + include/common/dir.h | 1 + include/common/font.h | 1 + include/common/grab-file.h | 1 + include/common/nodename.h | 1 + include/common/spawn.h | 1 + include/common/string-helpers.h | 1 + include/common/zfree.h | 1 + include/config/keybind.h | 1 + include/config/libinput.h | 1 + include/config/mousebind.h | 1 + include/config/rcxml.h | 1 + include/config/session.h | 1 + include/layers.h | 1 + include/resistance.h | 1 + include/ssd.h | 1 + include/theme.h | 1 + include/xbm/parse.h | 1 + include/xbm/tokenize.h | 1 + include/xbm/xbm.h | 1 + src/common/buf.c | 1 + src/common/dir.c | 1 + src/common/font.c | 1 + src/common/grab-file.c | 1 + src/common/nodename.c | 1 + src/resistance.c | 2 +- 26 files changed, 26 insertions(+), 1 deletion(-) diff --git a/include/common/buf.h b/include/common/buf.h index 3b75b985..a6171672 100644 --- a/include/common/buf.h +++ b/include/common/buf.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ /* * Very simple C string buffer implementation * diff --git a/include/common/dir.h b/include/common/dir.h index e654664d..e756401f 100644 --- a/include/common/dir.h +++ b/include/common/dir.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __LABWC_DIR_H #define __LABWC_DIR_H diff --git a/include/common/font.h b/include/common/font.h index f282a968..c7af6848 100644 --- a/include/common/font.h +++ b/include/common/font.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __LABWC_FONT_H #define __LABWC_FONT_H diff --git a/include/common/grab-file.h b/include/common/grab-file.h index 38aaddc7..a2a0953b 100644 --- a/include/common/grab-file.h +++ b/include/common/grab-file.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ /* * Read file into memory * diff --git a/include/common/nodename.h b/include/common/nodename.h index a54694fa..15948eaf 100644 --- a/include/common/nodename.h +++ b/include/common/nodename.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __LABWC_NODENAME_H #define __LABWC_NODENAME_H diff --git a/include/common/spawn.h b/include/common/spawn.h index 10394a1b..db899589 100644 --- a/include/common/spawn.h +++ b/include/common/spawn.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __LABWC_SPAWN_H #define __LABWC_SPAWN_H diff --git a/include/common/string-helpers.h b/include/common/string-helpers.h index 286c216d..afe46fdd 100644 --- a/include/common/string-helpers.h +++ b/include/common/string-helpers.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __LABWC_STRING_HELPERS_H #define __LABWC_STRING_HELPERS_H diff --git a/include/common/zfree.h b/include/common/zfree.h index e791b68b..30479fb4 100644 --- a/include/common/zfree.h +++ b/include/common/zfree.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __LABWC_ZFREE_H #define __LABWC_ZFREE_H diff --git a/include/config/keybind.h b/include/config/keybind.h index 136f2e71..62d9818b 100644 --- a/include/config/keybind.h +++ b/include/config/keybind.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __LABWC_KEYBIND_H #define __LABWC_KEYBIND_H diff --git a/include/config/libinput.h b/include/config/libinput.h index 248c8d64..256633cd 100644 --- a/include/config/libinput.h +++ b/include/config/libinput.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __LABWC_LIBINPUT_H #define __LABWC_LIBINPUT_H diff --git a/include/config/mousebind.h b/include/config/mousebind.h index cfd25b51..52ec16ae 100644 --- a/include/config/mousebind.h +++ b/include/config/mousebind.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __LABWC_MOUSEBIND_H #define __LABWC_MOUSEBIND_H diff --git a/include/config/rcxml.h b/include/config/rcxml.h index cb4077bd..39d1e5c0 100644 --- a/include/config/rcxml.h +++ b/include/config/rcxml.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __LABWC_RCXML_H #define __LABWC_RCXML_H diff --git a/include/config/session.h b/include/config/session.h index 99203bf3..674b6f76 100644 --- a/include/config/session.h +++ b/include/config/session.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __LABWC_SESSION_H #define __LABWC_SESSION_H diff --git a/include/layers.h b/include/layers.h index d01a4102..35b41090 100644 --- a/include/layers.h +++ b/include/layers.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __LABWC_LAYERS_H #define __LABWC_LAYERS_H #include diff --git a/include/resistance.h b/include/resistance.h index 1d79ed3a..3251b0de 100644 --- a/include/resistance.h +++ b/include/resistance.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __RESISTANCE_H #define __RESISTANCE_H #include "labwc.h" diff --git a/include/ssd.h b/include/ssd.h index f29b1940..7b6c4508 100644 --- a/include/ssd.h +++ b/include/ssd.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __LABWC_SSD_H #define __LABWC_SSD_H diff --git a/include/theme.h b/include/theme.h index aa5fd8b1..2f97c10b 100644 --- a/include/theme.h +++ b/include/theme.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ /* * Theme engine for labwc * diff --git a/include/xbm/parse.h b/include/xbm/parse.h index 9739ee7c..a344ba84 100644 --- a/include/xbm/parse.h +++ b/include/xbm/parse.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ /* * Parse xbm token to create pixmap * diff --git a/include/xbm/tokenize.h b/include/xbm/tokenize.h index 019eadcb..4887ac20 100644 --- a/include/xbm/tokenize.h +++ b/include/xbm/tokenize.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ /* * XBM file tokenizer * diff --git a/include/xbm/xbm.h b/include/xbm/xbm.h index b6324871..739d9a2c 100644 --- a/include/xbm/xbm.h +++ b/include/xbm/xbm.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __LABWC_XBM_H #define __LABWC_XBM_H diff --git a/src/common/buf.c b/src/common/buf.c index a3a450d4..5e908f9a 100644 --- a/src/common/buf.c +++ b/src/common/buf.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-only #include #include "common/buf.h" diff --git a/src/common/dir.c b/src/common/dir.c index 616c96da..395c013f 100644 --- a/src/common/dir.c +++ b/src/common/dir.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-only /* * Find the configuration and theme directories * diff --git a/src/common/font.c b/src/common/font.c index 0e0b3243..e5222d00 100644 --- a/src/common/font.c +++ b/src/common/font.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-only #include #include #include diff --git a/src/common/grab-file.c b/src/common/grab-file.c index aad0b489..daf5bf3c 100644 --- a/src/common/grab-file.c +++ b/src/common/grab-file.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-only /* * Read file into memory * diff --git a/src/common/nodename.c b/src/common/nodename.c index 315ae6e1..48659869 100644 --- a/src/common/nodename.c +++ b/src/common/nodename.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-only #include #include #include "common/nodename.h" diff --git a/src/resistance.c b/src/resistance.c index 8ada157f..11cdfadd 100644 --- a/src/resistance.c +++ b/src/resistance.c @@ -15,7 +15,7 @@ is_within_resistance_range(struct edges view, struct edges target, { if (view.left >= other.left && target.left < other.left && target.left >= other.left - strength) { - flags->left = 1; + flags->left = 1; } else if (view.right <= other.right && target.right > other.right && target.right <= other.right + strength) { flags->right = 1; -- 2.52.0