mesh source code housekeeping
cover mesh source code housekeeping
This patch set updates copyright dates on the files that have been modified in 2019 and cleans up the includelists in source files.
Inga Stotland (2):
mesh: Update copyright dates
mesh: Remove unnecessary includes from .c files
mesh/agent.c | 3 +-- mesh/appkey.c | 4 +--- mesh/appkey.h | 2 +- mesh/cfgmod-server.c | 7 +------ mesh/crypto.c | 4 +--- mesh/dbus.c | 10 ---------- mesh/error.h | 2 +- mesh/friend.c | 8 +------- mesh/keyring.c | 7 +------ mesh/main.c | 7 ------- mesh/mesh-db.c | 3 +-- mesh/mesh-db.h | 2 +- mesh/mesh-defs.h | 2 +- mesh/mesh-io-generic.c | 6 +----- mesh/mesh-io.c | 2 -- mesh/mesh.c | 5 ++--- mesh/model.c | 2 +- mesh/net-keys.c | 3 +-- mesh/net-keys.h | 2 +- mesh/net.c | 11 ++--------- mesh/net.h | 2 +- mesh/node.c | 6 ++---- mesh/node.h | 2 +- mesh/pb-adv.c | 18 +----------------- mesh/prov-acceptor.c | 18 ++---------------- mesh/prov-initiator.c | 18 ++---------------- mesh/storage.c | 13 +++---------- mesh/storage.h | 2 +- mesh/util.c | 6 +----- 29 files changed, 33 insertions(+), 144 deletions(-)
Signature · 1 line
2.21.0
PATCH 1/2 mesh: Update copyright dates
--- mesh/agent.c | 2 +- mesh/appkey.c | 2 +- mesh/appkey.h | 2 +- mesh/cfgmod-server.c | 2 +- mesh/crypto.c | 2 +- mesh/error.h | 2 +- mesh/friend.c | 2 +- mesh/mesh-db.c | 2 +- mesh/mesh-db.h | 2 +- mesh/mesh-defs.h | 2 +- mesh/mesh-io-generic.c | 2 +- mesh/mesh.c | 2 +- mesh/model.c | 2 +- mesh/net-keys.c | 2 +- mesh/net-keys.h | 2 +- mesh/net.c | 2 +- mesh/net.h | 2 +- mesh/node.h | 2 +- mesh/pb-adv.c | 2 +- mesh/prov-acceptor.c | 2 +- mesh/prov-initiator.c | 2 +- mesh/storage.c | 2 +- mesh/storage.h | 2 +- 23 files changed, 23 insertions(+), 23 deletions(-)
mesh/agent.c +1 -1
@@ -2,7 +2,7 @@* * BlueZ - Bluetooth protocol stack for Linux * -* Copyright (C) 2018 Intel Corporation. All rights reserved. +* Copyright (C) 2018-2019 Intel Corporation. All rights reserved. * * * This library is free software; you can redistribute it and/or
mesh/appkey.c +1 -1
@@ -2,7 +2,7 @@* * BlueZ - Bluetooth protocol stack for Linux * -* Copyright (C) 2017-2018 Intel Corporation. All rights reserved. +* Copyright (C) 2017-2019 Intel Corporation. All rights reserved. * * * This library is free software; you can redistribute it and/or
mesh/appkey.h +1 -1
@@ -2,7 +2,7 @@* * BlueZ - Bluetooth protocol stack for Linux * -* Copyright (C) 2018 Intel Corporation. All rights reserved. +* Copyright (C) 2018-2019 Intel Corporation. All rights reserved. * * * This library is free software; you can redistribute it and/or
mesh/cfgmod-server.c +1 -1
@@ -2,7 +2,7 @@* * BlueZ - Bluetooth protocol stack for Linux * -* Copyright (C) 2018 Intel Corporation. All rights reserved. +* Copyright (C) 2018-2019 Intel Corporation. All rights reserved. * * * This library is free software; you can redistribute it and/or
mesh/crypto.c +1 -1
@@ -2,7 +2,7 @@* * BlueZ - Bluetooth protocol stack for Linux * -* Copyright (C) 2018 Intel Corporation. All rights reserved. +* Copyright (C) 2018-2019 Intel Corporation. All rights reserved. * * * This library is free software; you can redistribute it and/or
mesh/error.h +1 -1
@@ -2,7 +2,7 @@* * BlueZ - Bluetooth protocol stack for Linux * -* Copyright (C) 2018 Intel Corporation. All rights reserved. +* Copyright (C) 2018-2019 Intel Corporation. All rights reserved. * * * This library is free software; you can redistribute it and/or
mesh/friend.c +1 -1
@@ -2,7 +2,7 @@* * BlueZ - Bluetooth protocol stack for Linux * -* Copyright (C) 2018 Intel Corporation. All rights reserved. +* Copyright (C) 2018-2019 Intel Corporation. All rights reserved. * * * This library is free software; you can redistribute it and/or
mesh/mesh-db.c +1 -1
@@ -2,7 +2,7 @@* * BlueZ - Bluetooth protocol stack for Linux * -* Copyright (C) 2018 Intel Corporation. All rights reserved. +* Copyright (C) 2018-2019 Intel Corporation. All rights reserved. * * * This library is free software; you can redistribute it and/or
mesh/mesh-db.h +1 -1
@@ -2,7 +2,7 @@* * BlueZ - Bluetooth protocol stack for Linux * -* Copyright (C) 2018 Intel Corporation. All rights reserved. +* Copyright (C) 2018-2019 Intel Corporation. All rights reserved. * * * This library is free software; you can redistribute it and/or
mesh/mesh-defs.h +1 -1
@@ -2,7 +2,7 @@* * BlueZ - Bluetooth protocol stack for Linux * -* Copyright (C) 2018 Intel Corporation. All rights reserved. +* Copyright (C) 2018-2019 Intel Corporation. All rights reserved. * * * This library is free software; you can redistribute it and/or
mesh/mesh-io-generic.c +1 -1
@@ -2,7 +2,7 @@* * BlueZ - Bluetooth protocol stack for Linux * -* Copyright (C) 2018 Intel Corporation. All rights reserved. +* Copyright (C) 2018-2019 Intel Corporation. All rights reserved. * * * This library is free software; you can redistribute it and/or
mesh/mesh.c +1 -1
@@ -2,7 +2,7 @@* * BlueZ - Bluetooth protocol stack for Linux * -* Copyright (C) 2018 Intel Corporation. All rights reserved. +* Copyright (C) 2018-2019 Intel Corporation. All rights reserved. * * * This library is free software; you can redistribute it and/or
mesh/model.c +1 -1
@@ -2,7 +2,7 @@* * BlueZ - Bluetooth protocol stack for Linux * -* Copyright (C) 2018 Intel Corporation. All rights reserved. +* Copyright (C) 2018-2019 Intel Corporation. All rights reserved. * * * This library is free software; you can redistribute it and/or
mesh/net-keys.c +1 -1
@@ -2,7 +2,7 @@* * BlueZ - Bluetooth protocol stack for Linux * -* Copyright (C) 2018 Intel Corporation. All rights reserved. +* Copyright (C) 2019 Intel Corporation. All rights reserved. * * * This library is free software; you can redistribute it and/or
mesh/net-keys.h +1 -1
@@ -2,7 +2,7 @@* * BlueZ - Bluetooth protocol stack for Linux * -* Copyright (C) 2018 Intel Corporation. All rights reserved. +* Copyright (C) 2019 Intel Corporation. All rights reserved. * * * This library is free software; you can redistribute it and/or
mesh/net.c +1 -1
@@ -2,7 +2,7 @@* * BlueZ - Bluetooth protocol stack for Linux * -* Copyright (C) 2018 Intel Corporation. All rights reserved. +* Copyright (C) 2018-2019 Intel Corporation. All rights reserved. * * * This library is free software; you can redistribute it and/or
mesh/net.h +1 -1
@@ -2,7 +2,7 @@* * BlueZ - Bluetooth protocol stack for Linux * -* Copyright (C) 2018 Intel Corporation. All rights reserved. +* Copyright (C) 2018-2019 Intel Corporation. All rights reserved. * * * This library is free software; you can redistribute it and/or
mesh/node.h +1 -1
@@ -2,7 +2,7 @@* * BlueZ - Bluetooth protocol stack for Linux * -* Copyright (C) 2018 Intel Corporation. All rights reserved. +* Copyright (C) 2018-2019 Intel Corporation. All rights reserved. * * * This library is free software; you can redistribute it and/or
mesh/pb-adv.c +1 -1
@@ -2,7 +2,7 @@* * BlueZ - Bluetooth protocol stack for Linux * -* Copyright (C) 2018 Intel Corporation. All rights reserved. +* Copyright (C) 2018-2019 Intel Corporation. All rights reserved. * * * This library is free software; you can redistribute it and/or
mesh/prov-acceptor.c +1 -1
@@ -2,7 +2,7 @@* * BlueZ - Bluetooth protocol stack for Linux * -* Copyright (C) 2018 Intel Corporation. All rights reserved. +* Copyright (C) 2018-2019 Intel Corporation. All rights reserved. * * * This library is free software; you can redistribute it and/or
mesh/prov-initiator.c +1 -1
@@ -2,7 +2,7 @@* * BlueZ - Bluetooth protocol stack for Linux * -* Copyright (C) 2018 Intel Corporation. All rights reserved. +* Copyright (C) 2018-2019 Intel Corporation. All rights reserved. * * * This library is free software; you can redistribute it and/or
mesh/storage.c +1 -1
@@ -2,7 +2,7 @@* * BlueZ - Bluetooth protocol stack for Linux * -* Copyright (C) 2017-2018 Intel Corporation. All rights reserved. +* Copyright (C) 2017-2019 Intel Corporation. All rights reserved. * * * This library is free software; you can redistribute it and/or
mesh/storage.h +1 -1
@@ -2,7 +2,7 @@* * BlueZ - Bluetooth protocol stack for Linux * -* Copyright (C) 2017-2918 Intel Corporation. All rights reserved. +* Copyright (C) 2017-2019 Intel Corporation. All rights reserved. * * * This library is free software; you can redistribute it and/or
Signature · 1 line
2.21.0
PATCH 2/2 mesh: Remove unnecessary includes from .c files
In reply to Inga Stotland--- mesh/agent.c | 1 - mesh/appkey.c | 2 -- mesh/cfgmod-server.c | 5 ----- mesh/crypto.c | 2 -- mesh/dbus.c | 10 ---------- mesh/friend.c | 6 ------ mesh/keyring.c | 7 +------ mesh/main.c | 7 ------- mesh/mesh-db.c | 1 - mesh/mesh-io-generic.c | 4 ---- mesh/mesh-io.c | 2 -- mesh/mesh.c | 3 +-- mesh/net-keys.c | 1 - mesh/net.c | 9 +-------- mesh/node.c | 6 ++---- mesh/pb-adv.c | 16 ---------------- mesh/prov-acceptor.c | 16 +--------------- mesh/prov-initiator.c | 16 +--------------- mesh/storage.c | 11 ++--------- mesh/util.c | 6 +----- 20 files changed, 10 insertions(+), 121 deletions(-)
mesh/agent.c +0 -1
@@ -24,7 +24,6 @@#include <ell/ell.h> #include "mesh/mesh.h" -#include "mesh/provision.h" #include "mesh/error.h" #include "mesh/dbus.h" #include "mesh/agent.h"
mesh/appkey.c +0 -2
@@ -23,11 +23,9 @@#define _GNU_SOURCE#include <ell/ell.h> -#include <json-c/json.h> #include "mesh/mesh-defs.h" -#include "mesh/mesh.h" #include "mesh/node.h" #include "mesh/net.h" #include "mesh/crypto.h"
mesh/cfgmod-server.c +0 -5
@@ -21,17 +21,12 @@#include <config.h> #endif -#include <unistd.h> -#include <stdio.h> -#include <stdint.h> #include <sys/time.h> #include <ell/ell.h> -#include <ell/ell.h> #include "json-c/json.h" #include "mesh/mesh-defs.h" -#include "mesh/mesh.h" #include "mesh/node.h" #include "mesh/net.h" #include "mesh/appkey.h"
mesh/crypto.c +0 -2
@@ -22,9 +22,7 @@#endif #define _GNU_SOURCE -#include <fcntl.h> #include <unistd.h> -#include <string.h> #include <sys/socket.h> #include <ell/ell.h>
mesh/dbus.c +0 -10
@@ -21,21 +21,11 @@#include <config.h> #endif -#include <time.h> #include <ell/ell.h> -#include <json-c/json.h> - -#include "lib/bluetooth.h" -#include "lib/mgmt.h" - -#include "src/shared/mgmt.h" #include "mesh/mesh-defs.h" -#include "mesh/mesh-io.h" #include "mesh/node.h" #include "mesh/manager.h" -#include "mesh/net.h" -#include "mesh/cfgmod.h" #include "mesh/mesh.h" #include "mesh/error.h" #include "mesh/dbus.h"
mesh/friend.c +0 -6
@@ -21,18 +21,12 @@#include <config.h> #endif -#include <unistd.h> -#include <stdio.h> -#include <sys/time.h> #include <ell/ell.h> #include "mesh/mesh-defs.h" -#include "mesh/mesh.h" #include "mesh/net-keys.h" -#include "mesh/node.h" #include "mesh/net.h" -#include "mesh/crypto.h" #include "mesh/model.h" #include "mesh/util.h"
mesh/keyring.c +1 -6
@@ -22,24 +22,19 @@#endif #define _GNU_SOURCE -#include <errno.h> #include <fcntl.h> #include <stdio.h> #include <unistd.h> #include <dirent.h> -#include <libgen.h> -#include <sys/types.h> #include <sys/stat.h> #include <ell/ell.h> #include "mesh/mesh-defs.h" -#include "mesh/net.h" -#include "mesh/keyring.h" -#include "mesh/mesh.h" #include "mesh/node.h" +#include "mesh/keyring.h" const char *dev_key_dir ="/dev_keys" ;const char *app_key_dir ="/app_keys" ;
mesh/main.c +0 -7
@@ -23,25 +23,18 @@#define _GNU_SOURCE#include <getopt.h> -#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <ctype.h> -#include <signal.h> #include <sys/stat.h> #include <ell/ell.h> -#include <dbus/dbus.h> -#include <json-c/json.h> -#include "lib/bluetooth.h" #include "lib/mgmt.h" #include "mesh/mesh.h" -#include "mesh/net.h" #include "mesh/dbus.h" -#include "mesh/storage.h" static const struct option main_options[] = { {"index" , required_argument,NULL ,'i' },
mesh/mesh-db.c +0 -1
@@ -23,7 +23,6 @@#define _GNU_SOURCE#include <errno.h> -#include <stdbool.h> #include <stdio.h> #include <string.h>
mesh/mesh-io-generic.c +0 -4
@@ -24,15 +24,11 @@#include <sys/time.h> #include <ell/ell.h> -#include "lib/bluetooth.h" -#include "lib/hci.h" -#include "monitor/bt.h" #include "src/shared/hci.h" #include "mesh/mesh-io.h" #include "mesh/mesh-io-api.h" -#include "mesh/mesh-io-generic.h" struct mesh_io_private {
mesh/mesh-io.c +0 -2
@@ -24,10 +24,8 @@#include <ell/ell.h> #include "lib/bluetooth.h" -#include "lib/hci.h" #include "mesh/mesh-defs.h" -#include "mesh/mesh-io.h" #include "mesh/mesh-io-api.h"
mesh/mesh.c +1 -2
@@ -23,7 +23,6 @@#define _GNU_SOURCE#include <ell/ell.h> -#include <json-c/json.h> #include "lib/bluetooth.h" #include "lib/mgmt.h"
@@ -38,8 +37,8 @@#include "mesh/model.h" #include "mesh/dbus.h" #include "mesh/error.h" -#include "mesh/mesh.h" #include "mesh/agent.h" +#include "mesh/mesh.h" /* * The default values for mesh configuration. Can be
mesh/net-keys.c +0 -1
@@ -21,7 +21,6 @@#include <config.h> #endif -#include <stdlib.h> #include <ell/ell.h> #include "mesh/crypto.h"
mesh/net.c +1 -8
@@ -22,18 +22,13 @@#endif #define _GNU_SOURCE -#include <stdlib.h> -#include <stdio.h> -#include <sys/time.h> +#include <ell/ell.h> -#include <json-c/json.h> #include "mesh/mesh-defs.h" #include "mesh/util.h" -#include "mesh/crypto.h" #include "mesh/net-keys.h" -#include "mesh/mesh.h" #include "mesh/node.h" #include "mesh/net.h" #include "mesh/mesh-io.h"
@@ -41,8 +36,6 @@#include "mesh/storage.h" #include "mesh/model.h" #include "mesh/appkey.h" -#include "mesh/prov.h" -#include "mesh/provision.h" #define abs_diff (a, b) ((a) > (b) ? (a) - (b) : (b) - (a))
mesh/node.c +2 -4
@@ -22,21 +22,19 @@#endif #define _GNU_SOURCE -#include <stdio.h> +#include <sys/time.h> +#include <ell/ell.h> #include <json-c/json.h> #include "mesh/mesh-defs.h" -#include "mesh/mesh.h" -#include "mesh/mesh-io.h" #include "mesh/net.h" #include "mesh/mesh-db.h" #include "mesh/provision.h" #include "mesh/storage.h" #include "mesh/keyring.h" -#include "mesh/appkey.h" #include "mesh/model.h" #include "mesh/cfgmod.h" #include "mesh/util.h"
mesh/pb-adv.c +0 -16
@@ -21,25 +21,9 @@#include <config.h> #endif -#include <sys/select.h> -#include <sys/time.h> -#include <sys/types.h> -#include <unistd.h> -#include <fcntl.h> -#include <termios.h> - -#include <ctype.h> -#include <stdlib.h> -#include <stdio.h> -#include <getopt.h> -#include <time.h> #include <ell/ell.h> #include "mesh/mesh-defs.h" -#include "src/shared/ecc.h" - -#include "mesh/util.h" -#include "mesh/net-keys.h" #include "mesh/crypto.h" #include "mesh/net.h" #include "mesh/mesh-io.h"
mesh/prov-acceptor.c +1 -15
@@ -21,28 +21,14 @@#include <config.h> #endif -#include <sys/select.h> -#include <sys/time.h> -#include <sys/types.h> -#include <unistd.h> -#include <fcntl.h> -#include <termios.h> - -#include <ctype.h> -#include <stdlib.h> -#include <stdio.h> -#include <getopt.h> -#include <time.h> #include <ell/ell.h> -#include "mesh/mesh-defs.h" #include "src/shared/ecc.h" +#include "mesh/mesh-defs.h" #include "mesh/util.h" -#include "mesh/net-keys.h" #include "mesh/crypto.h" #include "mesh/net.h" -#include "mesh/error.h" #include "mesh/prov.h" #include "mesh/provision.h" #include "mesh/pb-adv.h"
mesh/prov-initiator.c +1 -15
@@ -21,28 +21,14 @@#include <config.h> #endif -#include <sys/select.h> -#include <sys/time.h> -#include <sys/types.h> -#include <unistd.h> -#include <fcntl.h> -#include <termios.h> - -#include <ctype.h> -#include <stdlib.h> -#include <stdio.h> -#include <getopt.h> -#include <time.h> #include <ell/ell.h> -#include "mesh/mesh-defs.h" #include "src/shared/ecc.h" +#include "mesh/mesh-defs.h" #include "mesh/util.h" -#include "mesh/net-keys.h" #include "mesh/crypto.h" #include "mesh/net.h" -#include "mesh/error.h" #include "mesh/prov.h" #include "mesh/provision.h" #include "mesh/pb-adv.h"
mesh/storage.c +2 -9
@@ -22,7 +22,7 @@#endif #define _GNU_SOURCE -#include <errno.h> +//#include <errno.h> #include <fcntl.h> #include <stdio.h> #include <unistd.h>
@@ -30,23 +30,16 @@#include <libgen.h> #include <ftw.h> -#include <sys/types.h> -#include <sys/stat.h> -#include <json-c/json.h> #include <ell/ell.h> #include "mesh/mesh-defs.h" - -#include "mesh/mesh.h" #include "mesh/node.h" -#include "mesh/net.h" #include "mesh/appkey.h" -#include "mesh/model.h" #include "mesh/mesh-db.h" -#include "mesh/storage.h" #include "mesh/util.h" +#include "mesh/storage.h" struct write_info {json_object *jnode;
mesh/util.c +1 -5
@@ -22,13 +22,9 @@#endif #define _GNU_SOURCE -#include <stdbool.h> -#include <stdint.h> +#include <stdio.h> -#include <unistd.h> -#include <termios.h> #include <time.h> -#include <sys/ioctl.h> #include <sys/time.h> #include <ell/ell.h>
Signature · 1 line
2.21.0
Patch-set applied
Quoted 38 lines · Inga Stotland
This patch set updates copyright dates on the files that have been modified in 2019 and cleans up the includelists in source files.
Inga Stotland (2):
mesh: Update copyright dates
mesh: Remove unnecessary includes from .c filesmesh/agent.c | 3 +-- mesh/appkey.c | 4 +--- mesh/appkey.h | 2 +- mesh/cfgmod-server.c | 7 +------ mesh/crypto.c | 4 +--- mesh/dbus.c | 10 ---------- mesh/error.h | 2 +- mesh/friend.c | 8 +------- mesh/keyring.c | 7 +------ mesh/main.c | 7 ------- mesh/mesh-db.c | 3 +-- mesh/mesh-db.h | 2 +- mesh/mesh-defs.h | 2 +- mesh/mesh-io-generic.c | 6 +----- mesh/mesh-io.c | 2 -- mesh/mesh.c | 5 ++--- mesh/model.c | 2 +- mesh/net-keys.c | 3 +-- mesh/net-keys.h | 2 +- mesh/net.c | 11 ++--------- mesh/net.h | 2 +- mesh/node.c | 6 ++---- mesh/node.h | 2 +- mesh/pb-adv.c | 18 +----------------- mesh/prov-acceptor.c | 18 ++---------------- mesh/prov-initiator.c | 18 ++---------------- mesh/storage.c | 13 +++---------- mesh/storage.h | 2 +- mesh/util.c | 6 +----- 29 files changed, 33 insertions(+), 144 deletions(-)