[PATCH 00/11] lib: constify function arguments and static tables
Colin King
colin.king at canonical.com
Tue Oct 16 19:20:37 UTC 2012
From: Colin Ian King <colin.king at canonical.com>
Simple tidy up of fwts library functions; change a bunch of
function arguments to const and make static tables const where
appropriate. I've also re-formatted some of the code where
function declarations span more than 80 chars width.
Colin Ian King (11):
lib: fwts_ac_adapter: constify state
lib: fwts_acpi_method: constify funcs and static tables
lib: fwts_acpi_tables: constify func arguments where appropriate
lib: fwts_args: constify func arguments where appropriate
lib: fwts_battery: constify func arguments where appropriate
lib: fwts_button: constify function arguments where appropriate
lib: fwts_checkeuid: constify function arguments where appropriate
lib: fwts_hwinfo: constify function arguments where appropriate
lib: fwts_log: constify function arguments where appropriate
lib: fwts_memorymap: constify function arguments where appropriate
lib: fwts_summary: constify function arguments where appropriate
src/lib/include/fwts_ac_adapter.h | 2 +-
src/lib/include/fwts_acpi_method.h | 6 +--
src/lib/include/fwts_args.h | 2 +-
src/lib/include/fwts_battery.h | 12 +++---
src/lib/include/fwts_button.h | 2 +-
src/lib/include/fwts_checkeuid.h | 2 +-
src/lib/include/fwts_log.h | 4 +-
src/lib/include/fwts_memorymap.h | 2 +-
src/lib/include/fwts_summary.h | 2 +-
src/lib/src/fwts_ac_adapter.c | 2 +-
src/lib/src/fwts_acpi_method.c | 19 ++++++---
src/lib/src/fwts_acpi_tables.c | 7 ++--
src/lib/src/fwts_args.c | 14 +++++--
src/lib/src/fwts_battery.c | 81 +++++++++++++++++++++++++++---------
src/lib/src/fwts_button.c | 11 ++++-
src/lib/src/fwts_checkeuid.c | 2 +-
src/lib/src/fwts_hwinfo.c | 13 +++++-
src/lib/src/fwts_log.c | 12 +++---
src/lib/src/fwts_memorymap.c | 4 +-
src/lib/src/fwts_summary.c | 13 ++++--
20 files changed, 146 insertions(+), 66 deletions(-)
--
1.7.10.4
More information about the fwts-devel
mailing list