diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-06-19 20:58:44 +0000 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-08-14 20:02:05 +0000 |
| commit | 247dcce2b5676abbd0109bdc2d74c36dff73609c (patch) | |
| tree | 0e8fecea425d5ada4dab2a199b23108c193f1a27 /eigrpd | |
| parent | 313d7993a35571dabf8c2b2ecdf538b0686aae74 (diff) | |
*: fix source file headers & includes for errcodes
* Use the correct license header
* Stop headers from including themselves
* Use uniform relative include conventions
* Ensure that sources include what they use
* Turn off clang-format around struct array blocks
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'eigrpd')
| -rw-r--r-- | eigrpd/eigrp_errors.c | 23 | ||||
| -rw-r--r-- | eigrpd/eigrp_errors.h | 22 |
2 files changed, 24 insertions, 21 deletions
diff --git a/eigrpd/eigrp_errors.c b/eigrpd/eigrp_errors.c index 23a2af0056..5732fc39c8 100644 --- a/eigrpd/eigrp_errors.c +++ b/eigrpd/eigrp_errors.c @@ -1,27 +1,29 @@ /* - * eigrp_errors - code for error messages that may occur in the - * eigrp process + * EIGRP-specific error messages. * Copyright (C) 2018 Cumulus Networks, Inc. * Donald Sharp * - * FRR is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 2, or (at your option) any - * later version. + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation; either version 2 of the License, or (at your option) + * any later version. * - * FRR is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. * * You should have received a copy of the GNU General Public License along * with this program; see the file COPYING; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ + #include <zebra.h> +#include "lib/ferr.h" #include "eigrp_errors.h" +/* clang-format off */ static struct ferr_ref ferr_eigrp_err[] = { { .code = EIGRP_ERR_PACKET, @@ -39,6 +41,7 @@ static struct ferr_ref ferr_eigrp_err[] = { .code = END_FERR, } }; +/* clang-format on */ void eigrp_error_init(void) { diff --git a/eigrpd/eigrp_errors.h b/eigrpd/eigrp_errors.h index c314ddc465..e59a5d1e6e 100644 --- a/eigrpd/eigrp_errors.h +++ b/eigrpd/eigrp_errors.h @@ -1,27 +1,27 @@ /* - * eigrp_errors - header for error messages that may occur in the eigrp process + * EIGRP-specific error messages. * Copyright (C) 2018 Cumulus Networks, Inc. * Donald Sharp * - * FRR is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 2, or (at your option) any - * later version. + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation; either version 2 of the License, or (at your option) + * any later version. * - * FRR is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. * * You should have received a copy of the GNU General Public License along * with this program; see the file COPYING; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ + #ifndef __EIGRP_ERRORS_H__ #define __EIGRP_ERRORS_H__ -#include "ferr.h" -#include "eigrp_errors.h" +#include "lib/ferr.h" enum eigrp_ferr_refs { EIGRP_ERR_PACKET = EIGRP_FERR_START, |
