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

Loading…
Cancel
Save