diff options
author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-11-19 06:45:18 +0000 |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-11-19 06:45:18 +0000 |
commit | caa8bd6423e2d0d1b4e72c150e80b9c6a9e1b7fe (patch) | |
tree | 118fd80cc8ba27ef695a8e8ce409e5d70f4fa451 /lib/utils_disk.c | |
parent | 16f53e0717b60660145388b0feb351628f606211 (diff) | |
download | monitoring-plugins-caa8bd6423e2d0d1b4e72c150e80b9c6a9e1b7fe.tar.gz |
Bulk EOL cleanup
$ git diff --ignore-space-change|diffstat
0 files changed
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2087 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'lib/utils_disk.c')
-rw-r--r-- | lib/utils_disk.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/utils_disk.c b/lib/utils_disk.c index 3ce4d47d..ba2b21d7 100644 --- a/lib/utils_disk.c +++ b/lib/utils_disk.c | |||
@@ -91,7 +91,7 @@ np_del_parameter(struct parameter_list *item, struct parameter_list *prev) | |||
91 | return next; | 91 | return next; |
92 | } | 92 | } |
93 | 93 | ||
94 | 94 | ||
95 | /* returns a pointer to the struct found in the list */ | 95 | /* returns a pointer to the struct found in the list */ |
96 | struct parameter_list * | 96 | struct parameter_list * |
97 | np_find_parameter(struct parameter_list *list, const char *name) | 97 | np_find_parameter(struct parameter_list *list, const char *name) |
@@ -101,7 +101,7 @@ np_find_parameter(struct parameter_list *list, const char *name) | |||
101 | if (! strcmp(temp_list->name, name)) | 101 | if (! strcmp(temp_list->name, name)) |
102 | return temp_list; | 102 | return temp_list; |
103 | } | 103 | } |
104 | 104 | ||
105 | return NULL; | 105 | return NULL; |
106 | } | 106 | } |
107 | 107 | ||
@@ -126,7 +126,7 @@ np_set_best_match(struct parameter_list *desired, struct mount_entry *mount_list | |||
126 | if (! best_match) { | 126 | if (! best_match) { |
127 | for (me = mount_list; me; me = me->me_next) { | 127 | for (me = mount_list; me; me = me->me_next) { |
128 | size_t len = strlen (me->me_mountdir); | 128 | size_t len = strlen (me->me_mountdir); |
129 | if ((exact == FALSE && (best_match_len <= len && len <= name_len && | 129 | if ((exact == FALSE && (best_match_len <= len && len <= name_len && |
130 | (len == 1 || strncmp (me->me_mountdir, d->name, len) == 0))) | 130 | (len == 1 || strncmp (me->me_mountdir, d->name, len) == 0))) |
131 | || (exact == TRUE && strcmp(me->me_mountdir, d->name)==0)) | 131 | || (exact == TRUE && strcmp(me->me_mountdir, d->name)==0)) |
132 | { | 132 | { |
@@ -175,7 +175,7 @@ np_seen_name(struct name_list *list, const char *name) | |||
175 | } | 175 | } |
176 | 176 | ||
177 | int | 177 | int |
178 | np_regex_match_mount_entry (struct mount_entry* me, regex_t* re) | 178 | np_regex_match_mount_entry (struct mount_entry* me, regex_t* re) |
179 | { | 179 | { |
180 | if (regexec(re, me->me_devname, (size_t) 0, NULL, 0) == 0 || | 180 | if (regexec(re, me->me_devname, (size_t) 0, NULL, 0) == 0 || |
181 | regexec(re, me->me_mountdir, (size_t) 0, NULL, 0) == 0 ) { | 181 | regexec(re, me->me_mountdir, (size_t) 0, NULL, 0) == 0 ) { |