Browse Source

Make functions static.

Georgi Chorbadzhiyski 12 years ago
parent
commit
5e3aeeb55e
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      fjfs.c

+ 4
- 4
fjfs.c View File

@@ -55,14 +55,14 @@ char *filenames;
55 55
 char *mountpoint;
56 56
 int mountpoint_created = 0;
57 57
 
58
-struct files *files_alloc(void) {
58
+static struct files *files_alloc(void) {
59 59
 	struct files *f = calloc(1, sizeof(struct files));
60 60
 	f->alloc_files = 64;
61 61
 	f->data = calloc(f->alloc_files, sizeof(struct fileinfo *));
62 62
 	return f;
63 63
 }
64 64
 
65
-void files_free(struct files **pfiles) {
65
+static void files_free(struct files **pfiles) {
66 66
 	struct files *files = *pfiles;
67 67
 	struct fileinfo *file;
68 68
 	int i;
@@ -94,7 +94,7 @@ void files_dump(struct files *files) {
94 94
 }
95 95
 #endif
96 96
 
97
-int files_add_file(struct files *files, char *filename) {
97
+static int files_add_file(struct files *files, char *filename) {
98 98
 	int ret = 0;
99 99
 	struct stat sb;
100 100
 	if (stat(filename, &sb) != -1) {
@@ -127,7 +127,7 @@ int files_add_file(struct files *files, char *filename) {
127 127
 	return ret;
128 128
 }
129 129
 
130
-int files_load_filelist(struct files *files, char *filename) {
130
+static int files_load_filelist(struct files *files, char *filename) {
131 131
 	size_t len;
132 132
 	ssize_t readed;
133 133
 	int ret = 0;

Loading…
Cancel
Save