diff options
author | Pavel Roskin <plroskin@gmail.com> | 2017-03-12 09:35:00 -0700 |
---|---|---|
committer | jsorg71 <jay.sorg@gmail.com> | 2017-03-14 00:21:48 -0700 |
commit | 6ed4c969f4d646a7751fe2da29ba94eddd3d6477 (patch) | |
tree | 951c72b16a0be1a1cc8c77e6d2ecaa1f25f2bcd6 /common/file.c | |
parent | 8be83473b72c926d3c056fd8a81965dbce0a0e5e (diff) | |
download | xrdp-proprietary-6ed4c969f4d646a7751fe2da29ba94eddd3d6477.tar.gz xrdp-proprietary-6ed4c969f4d646a7751fe2da29ba94eddd3d6477.zip |
Eliminate APP_CC and DEFAULT_CC
Diffstat (limited to 'common/file.c')
-rw-r--r-- | common/file.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/common/file.c b/common/file.c index 236ac3d8..16b8deee 100644 --- a/common/file.c +++ b/common/file.c @@ -30,14 +30,14 @@ #define FILE_MAX_LINE_BYTES 2048 -static int APP_CC +static int file_read_ini_line(struct stream *s, char *text, int text_bytes); /*****************************************************************************/ /* look up for a section name within str (i.e. pattern [section_name]) * if a section name is found, this function return 1 and copy the section * inplace of str. */ -static int APP_CC +static int line_lookup_for_section_name(char *str, int str_bytes) { int name_index_start; @@ -76,7 +76,7 @@ line_lookup_for_section_name(char *str, int str_bytes) /* returns error returns 0 if everything is ok returns 1 if problem reading file */ -static int APP_CC +static int l_file_read_sections(int fd, int max_file_size, struct list *names) { struct stream *s; @@ -117,7 +117,7 @@ l_file_read_sections(int fd, int max_file_size, struct list *names) * returns error * returns 0 if everything is ok * returns 1 if problem reading file */ -static int APP_CC +static int file_read_ini_line(struct stream *s, char *text, int text_bytes) { int i; @@ -195,7 +195,7 @@ file_read_ini_line(struct stream *s, char *text, int text_bytes) /*****************************************************************************/ /* returns error */ -static int APP_CC +static int file_split_name_value(char *text, char *name, char *value) { int len; @@ -238,7 +238,7 @@ file_split_name_value(char *text, char *name, char *value) /*****************************************************************************/ /* return error */ -static int APP_CC +static int l_file_read_section(int fd, int max_file_size, const char *section, struct list *names, struct list *values) { @@ -324,7 +324,7 @@ l_file_read_section(int fd, int max_file_size, const char *section, returns 0 if everything is ok returns 1 if problem reading file */ /* 32 K file size limit */ -int APP_CC +int file_read_sections(int fd, struct list *names) { return l_file_read_sections(fd, 32 * 1024, names); @@ -334,7 +334,7 @@ file_read_sections(int fd, struct list *names) /* return error */ /* this function should be preferred over file_read_sections because it can read any file size */ -int APP_CC +int file_by_name_read_sections(const char *file_name, struct list *names) { int fd; @@ -363,7 +363,7 @@ file_by_name_read_sections(const char *file_name, struct list *names) /*****************************************************************************/ /* return error */ /* 32 K file size limit */ -int APP_CC +int file_read_section(int fd, const char *section, struct list *names, struct list *values) { @@ -374,7 +374,7 @@ file_read_section(int fd, const char *section, /* return error */ /* this function should be preferred over file_read_section because it can read any file size */ -int APP_CC +int file_by_name_read_section(const char *file_name, const char *section, struct list *names, struct list *values) { |