aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid M. Syzdek <syzdek@bindlebinaries.com>2017-07-07 20:05:41 -0800
committerDavid M. Syzdek <syzdek@bindlebinaries.com>2017-07-07 20:05:41 -0800
commit10a370b3f8b16d05a651500b08616179e506042f (patch)
tree6f448b570ff78d6eb1c7676301f797aceea76bfd
parent7248da418913651d473e405f316c7ac6b886750c (diff)
downloadsecurecoreutils-10a370b3f8b16d05a651500b08616179e506042f.tar.gz
securecoreutils-10a370b3f8b16d05a651500b08616179e506042f.tar.bz2
securecoreutils-10a370b3f8b16d05a651500b08616179e506042f.tar.xz
securecoreutils-10a370b3f8b16d05a651500b08616179e506042f.zip
Cleaning up function prototypes.
-rw-r--r--src/widget-cat.c12
-rw-r--r--src/widget-cat.h1
-rw-r--r--src/widget-pathcheck.c12
-rw-r--r--src/widget-pathcheck.h1
-rw-r--r--src/widget-rm.c12
-rw-r--r--src/widget-rm.h1
-rw-r--r--src/widget-rmdir.c12
-rw-r--r--src/widget-rmdir.h1
-rw-r--r--src/widget-tail.c2
-rw-r--r--src/widget-tail.h2
-rw-r--r--src/widget-zcat.c5
-rw-r--r--src/widget-zcat.h5
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 @@
52#include <unistd.h> 52#include <unistd.h>
53 53
54 54
55//////////////////
56// //
57// Prototypes //
58// //
59//////////////////
60#ifdef __SECURECOREUTILS_PMARK
61#pragma mark - Prototypes
62#endif
63
64void scu_widget_cat_usage(scu_config * cnf);
65
66
55///////////////// 67/////////////////
56// // 68// //
57// Functions // 69// 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 @@
62 62
63int scu_widget_cat(scu_config * cnf); 63int scu_widget_cat(scu_config * cnf);
64 64
65void scu_widget_cat_usage(scu_config * cnf);
66 65
67#endif /* end of header */ 66#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 @@
46#include <stdio.h> 46#include <stdio.h>
47 47
48 48
49//////////////////
50// //
51// Prototypes //
52// //
53//////////////////
54#ifdef __SECURECOREUTILS_PMARK
55#pragma mark - Prototypes
56#endif
57
58void scu_widget_pathcheck_usage(scu_config * cnf);
59
60
49///////////////// 61/////////////////
50// // 62// //
51// Functions // 63// 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 @@
62 62
63int scu_widget_pathcheck(scu_config * cnf); 63int scu_widget_pathcheck(scu_config * cnf);
64 64
65void scu_widget_pathcheck_usage(scu_config * cnf);
66 65
67#endif /* end of header */ 66#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 @@
52#include <unistd.h> 52#include <unistd.h>
53 53
54 54
55//////////////////
56// //
57// Prototypes //
58// //
59//////////////////
60#ifdef __SECURECOREUTILS_PMARK
61#pragma mark - Prototypes
62#endif
63
64void scu_widget_rm_usage(scu_config * cnf);
65
66
55///////////////// 67/////////////////
56// // 68// //
57// Functions // 69// 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 @@
62 62
63int scu_widget_rm(scu_config * cnf); 63int scu_widget_rm(scu_config * cnf);
64 64
65void scu_widget_rm_usage(scu_config * cnf);
66 65
67#endif /* end of header */ 66#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 @@
52#include <unistd.h> 52#include <unistd.h>
53 53
54 54
55//////////////////
56// //
57// Prototypes //
58// //
59//////////////////
60#ifdef __SECURECOREUTILS_PMARK
61#pragma mark - Prototypes
62#endif
63
64void scu_widget_rmdir_usage(scu_config * cnf);
65
66
55///////////////// 67/////////////////
56// // 68// //
57// Functions // 69// 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 @@
62 62
63int scu_widget_rmdir(scu_config * cnf); 63int scu_widget_rmdir(scu_config * cnf);
64 64
65void scu_widget_rmdir_usage(scu_config * cnf);
66 65
67#endif /* end of header */ 66#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,
85int scu_widget_tail_follow(scu_config * cnf, int fd); 85int scu_widget_tail_follow(scu_config * cnf, int fd);
86int scu_widget_tail_lines(scu_config * cnf, int fd, struct stat * sb, 86int scu_widget_tail_lines(scu_config * cnf, int fd, struct stat * sb,
87 size_t opts, off_t optnum); 87 size_t opts, off_t optnum);
88void scu_widget_tail_usage(scu_config * cnf);
89void scu_widget_tail_follow_alarm(int sig);
88 90
89 91
90///////////////// 92/////////////////
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 @@
62 62
63int scu_widget_tail(scu_config * cnf); 63int scu_widget_tail(scu_config * cnf);
64 64
65void scu_widget_tail_usage(scu_config * cnf);
66void scu_widget_tail_follow_alarm(int sig);
67 65
68#endif /* end of header */ 66#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
96#pragma mark - Prototypes 96#pragma mark - Prototypes
97#endif 97#endif
98 98
99int scu_widget_zcat_bz2(scu_config * cnf);
100int scu_widget_zcat_gz(scu_config * cnf);
101int scu_widget_zcat_lzma(scu_config * cnf);
99#ifdef USE_LZMA 102#ifdef USE_LZMA
100int scu_widget_zcat_lzma_perror(scu_config * cnf, lzma_ret ret); 103int scu_widget_zcat_lzma_perror(scu_config * cnf, lzma_ret ret);
101#endif 104#endif
105int scu_widget_zcat_lzw(scu_config * cnf);
106void scu_widget_zcat_usage(scu_config * cnf);
102 107
103 108
104///////////////// 109/////////////////
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 @@
61#endif 61#endif
62 62
63int scu_widget_zcat(scu_config * cnf); 63int scu_widget_zcat(scu_config * cnf);
64int scu_widget_zcat_bz2(scu_config * cnf);
65int scu_widget_zcat_gz(scu_config * cnf);
66int scu_widget_zcat_lzma(scu_config * cnf);
67int scu_widget_zcat_lzw(scu_config * cnf);
68 64
69void scu_widget_zcat_usage(scu_config * cnf);
70 65
71#endif /* end of header */ 66#endif /* end of header */