From 10a370b3f8b16d05a651500b08616179e506042f Mon Sep 17 00:00:00 2001 From: "David M. Syzdek" Date: Fri, 7 Jul 2017 20:05:41 -0800 Subject: Cleaning up function prototypes. --- src/widget-cat.c | 12 ++++++++++++ src/widget-cat.h | 1 - src/widget-pathcheck.c | 12 ++++++++++++ src/widget-pathcheck.h | 1 - src/widget-rm.c | 12 ++++++++++++ src/widget-rm.h | 1 - src/widget-rmdir.c | 12 ++++++++++++ src/widget-rmdir.h | 1 - src/widget-tail.c | 2 ++ src/widget-tail.h | 2 -- src/widget-zcat.c | 5 +++++ src/widget-zcat.h | 5 ----- 12 files changed, 55 insertions(+), 11 deletions(-) diff --git a/src/widget-cat.c b/src/widget-cat.c index 786599c..f62314e 100644 --- a/src/widget-cat.c +++ b/src/widget-cat.c @@ -52,6 +52,18 @@ #include +////////////////// +// // +// Prototypes // +// // +////////////////// +#ifdef __SECURECOREUTILS_PMARK +#pragma mark - Prototypes +#endif + +void scu_widget_cat_usage(scu_config * cnf); + + ///////////////// // // // Functions // diff --git a/src/widget-cat.h b/src/widget-cat.h index 2f67114..828feaf 100644 --- a/src/widget-cat.h +++ b/src/widget-cat.h @@ -62,6 +62,5 @@ int scu_widget_cat(scu_config * cnf); -void scu_widget_cat_usage(scu_config * cnf); #endif /* end of header */ diff --git a/src/widget-pathcheck.c b/src/widget-pathcheck.c index dfc7d04..1018a77 100644 --- a/src/widget-pathcheck.c +++ b/src/widget-pathcheck.c @@ -46,6 +46,18 @@ #include +////////////////// +// // +// Prototypes // +// // +////////////////// +#ifdef __SECURECOREUTILS_PMARK +#pragma mark - Prototypes +#endif + +void scu_widget_pathcheck_usage(scu_config * cnf); + + ///////////////// // // // Functions // diff --git a/src/widget-pathcheck.h b/src/widget-pathcheck.h index 986919d..7871417 100644 --- a/src/widget-pathcheck.h +++ b/src/widget-pathcheck.h @@ -62,6 +62,5 @@ int scu_widget_pathcheck(scu_config * cnf); -void scu_widget_pathcheck_usage(scu_config * cnf); #endif /* end of header */ diff --git a/src/widget-rm.c b/src/widget-rm.c index 7023849..85beb4a 100644 --- a/src/widget-rm.c +++ b/src/widget-rm.c @@ -52,6 +52,18 @@ #include +////////////////// +// // +// Prototypes // +// // +////////////////// +#ifdef __SECURECOREUTILS_PMARK +#pragma mark - Prototypes +#endif + +void scu_widget_rm_usage(scu_config * cnf); + + ///////////////// // // // Functions // diff --git a/src/widget-rm.h b/src/widget-rm.h index 82d78b7..8f4d00f 100644 --- a/src/widget-rm.h +++ b/src/widget-rm.h @@ -62,6 +62,5 @@ int scu_widget_rm(scu_config * cnf); -void scu_widget_rm_usage(scu_config * cnf); #endif /* end of header */ diff --git a/src/widget-rmdir.c b/src/widget-rmdir.c index bb4b985..6018eee 100644 --- a/src/widget-rmdir.c +++ b/src/widget-rmdir.c @@ -52,6 +52,18 @@ #include +////////////////// +// // +// Prototypes // +// // +////////////////// +#ifdef __SECURECOREUTILS_PMARK +#pragma mark - Prototypes +#endif + +void scu_widget_rmdir_usage(scu_config * cnf); + + ///////////////// // // // Functions // diff --git a/src/widget-rmdir.h b/src/widget-rmdir.h index 6f23f5f..850e9c5 100644 --- a/src/widget-rmdir.h +++ b/src/widget-rmdir.h @@ -62,6 +62,5 @@ int scu_widget_rmdir(scu_config * cnf); -void scu_widget_rmdir_usage(scu_config * cnf); #endif /* end of header */ diff --git a/src/widget-tail.c b/src/widget-tail.c index 2b1631a..a33abc7 100644 --- a/src/widget-tail.c +++ b/src/widget-tail.c @@ -85,6 +85,8 @@ int scu_widget_tail_bytes(scu_config * cnf, int fd, struct stat * sb, int scu_widget_tail_follow(scu_config * cnf, int fd); int scu_widget_tail_lines(scu_config * cnf, int fd, struct stat * sb, size_t opts, off_t optnum); +void scu_widget_tail_usage(scu_config * cnf); +void scu_widget_tail_follow_alarm(int sig); ///////////////// diff --git a/src/widget-tail.h b/src/widget-tail.h index b0de990..ab21dbd 100644 --- a/src/widget-tail.h +++ b/src/widget-tail.h @@ -62,7 +62,5 @@ int scu_widget_tail(scu_config * cnf); -void scu_widget_tail_usage(scu_config * cnf); -void scu_widget_tail_follow_alarm(int sig); #endif /* end of header */ diff --git a/src/widget-zcat.c b/src/widget-zcat.c index 7b58ebc..bb122e6 100644 --- a/src/widget-zcat.c +++ b/src/widget-zcat.c @@ -96,9 +96,14 @@ const uint8_t scm_magic_lzma[6] = { 0xfd, 0x37, 0x7a, 0x58, 0x5a, 0x00 }; // ta #pragma mark - Prototypes #endif +int scu_widget_zcat_bz2(scu_config * cnf); +int scu_widget_zcat_gz(scu_config * cnf); +int scu_widget_zcat_lzma(scu_config * cnf); #ifdef USE_LZMA int scu_widget_zcat_lzma_perror(scu_config * cnf, lzma_ret ret); #endif +int scu_widget_zcat_lzw(scu_config * cnf); +void scu_widget_zcat_usage(scu_config * cnf); ///////////////// diff --git a/src/widget-zcat.h b/src/widget-zcat.h index d51d4cd..ebdb6c8 100644 --- a/src/widget-zcat.h +++ b/src/widget-zcat.h @@ -61,11 +61,6 @@ #endif int scu_widget_zcat(scu_config * cnf); -int scu_widget_zcat_bz2(scu_config * cnf); -int scu_widget_zcat_gz(scu_config * cnf); -int scu_widget_zcat_lzma(scu_config * cnf); -int scu_widget_zcat_lzw(scu_config * cnf); -void scu_widget_zcat_usage(scu_config * cnf); #endif /* end of header */ -- cgit v1.2.3