aboutsummaryrefslogtreecommitdiffstats
path: root/fileset.c
diff options
context:
space:
mode:
authorwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2010-10-12 19:26:07 +0000
committerwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2010-10-12 19:26:07 +0000
commit3637948f9f093ddcf2500b419e866d1b125a446b (patch)
tree235d311f17256cdf863c7e3ebfe787e62785244f /fileset.c
parent417a86a4176c9c11977f3e4b989b80d4ba5e7295 (diff)
Define some vars & fcns as static;
Also: do some minor reformmating and cleanup of whitespace. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34492 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'fileset.c')
-rw-r--r--fileset.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fileset.c b/fileset.c
index e6b63e9fca..b2db436383 100644
--- a/fileset.c
+++ b/fileset.c
@@ -62,12 +62,12 @@
typedef struct _fileset {
- GList *entries;
- char *dirname;
+ GList *entries;
+ char *dirname;
} fileset;
/* this is the fileset's global data */
-fileset set = { NULL, NULL};
+static fileset set = { NULL, NULL};
/* is this a probable file of a file set (does the naming pattern match)? */
@@ -263,8 +263,8 @@ fileset_add_dir(const char *fname)
if(fileset_filename_match_pattern(fname)) {
/* yes, go through the files in the directory and check if the file in question is part of the current file set */
if ((dir = ws_dir_open(dirname->str, 0, NULL)) != NULL) {
- while ((file = ws_dir_read_name(dir)) != NULL) {
- name = ws_dir_get_name(file);
+ while ((file = ws_dir_read_name(dir)) != NULL) {
+ name = ws_dir_get_name(file);
if(fileset_filename_match_pattern(name) && fileset_is_file_in_set(name, get_basename(fname))) {
fileset_add_file(dirname->str, name, strcmp(name, get_basename(fname))== 0 /* current */);
}