pgpool2.git / summary / log / commit / refs

commit    cda1061ae47773ec92ec066d3d3eefdd22e6d84b
Author:   Tatsuo Ishii <ishii@sraoss.co.jp>
Date:     Thu Jun 24 07:08:13 2021 +0000

    Fix the width of some struct member of LifeCheckNode.
    
    They were defined using constant numbers. Use more appropriate #define
    symbols to make them consistent with other declarations.
    
    The issue was detected by a Coverity run.
    
    Also fix copyright year.


src/include/watchdog/wd_lifecheck.h | 6 +++--- src/tools/watchdog/wd_cli.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/include/watchdog/wd_lifecheck.h b/src/include/watchdog/wd_lifecheck.h index a990e9304..8594027bf 100644 --- a/src/include/watchdog/wd_lifecheck.h +++ b/src/include/watchdog/wd_lifecheck.h @@ -6,7 +6,7 @@ * pgpool: a language independent connection pool server for PostgreSQL * written by Tatsuo Ishii * - * Copyright (c) 2003-2012 PgPool Global Development Group + * Copyright (c) 2003-2021 PgPool Global Development Group * * Permission to use, copy, modify, and distribute this software and * its documentation for any purpose and without fee is hereby @@ -42,8 +42,8 @@ typedef struct LifeCheckNode int ID; WD_STATES wdState; char stateName[128]; - char hostName[128]; - char nodeName[128]; + char hostName[WD_MAX_HOST_NAMELEN]; + char nodeName[WD_MAX_NODE_NAMELEN]; int wdPort; int pgpoolPort; int retry_lives; diff --git a/src/tools/watchdog/wd_cli.c b/src/tools/watchdog/wd_cli.c index 90db8164b..2dee8ce0a 100644 --- a/src/tools/watchdog/wd_cli.c +++ b/src/tools/watchdog/wd_cli.c @@ -6,7 +6,7 @@ * pgpool: a language independent connection pool server for PostgreSQL * written by Tatsuo Ishii * - * Copyright (c) 2003-2019 PgPool Global Development Group + * Copyright (c) 2003-2021 PgPool Global Development Group * * Permission to use, copy, modify, and distribute this software and * its documentation for any purpose and without fee is hereby [parent: 1e1c8da8900a]