diff options
author | Rajesh Amaravathi <rajesh@redhat.com> | 2012-01-04 13:06:29 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2012-01-05 08:51:22 -0800 |
commit | 22282b4fb82b83621c15773c4c44ff3d28a82e3c (patch) | |
tree | 171d14928c4987755b18a5a15beef15645358e7c /xlators/mgmt/glusterd/src/glusterd-mountbroker.c | |
parent | ea275f8cfe8abf5877f67b21afb2c1e6e08f06b7 (diff) |
lib/mount-broker: move utility functions to common-utils
functions skipwhite and nwstrtail have been moved from
mount-broker to common-utils library for general use.
Change-Id: I9cfefb28bbfcf5d0bd37e35865ff3f3b7923fc53
BUG: 765464
Signed-off-by: Rajesh Amaravathi <rajesh@redhat.com>
Reviewed-on: http://review.gluster.com/2560
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vijay@gluster.com>
Reviewed-by: Csaba Henk <csaba@gluster.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-mountbroker.c')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-mountbroker.c | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-mountbroker.c b/xlators/mgmt/glusterd/src/glusterd-mountbroker.c index b00145f8c..32adf4ddd 100644 --- a/xlators/mgmt/glusterd/src/glusterd-mountbroker.c +++ b/xlators/mgmt/glusterd/src/glusterd-mountbroker.c @@ -38,7 +38,7 @@ #include "glusterd-mem-types.h" #include "glusterd.h" #include "glusterd-utils.h" - +#include "common-utils.h" #include "glusterd-mountbroker.h" #include "glusterd-op-sm.h" @@ -63,31 +63,6 @@ seq_dict_foreach (dict_t *dict, } } -static void -skipwhite (char **s) -{ - while (isspace (**s)) - (*s)++; -} - -static char * -nwstrtail (char *str, char *pattern) -{ - for (;;) { - skipwhite (&str); - skipwhite (&pattern); - - if (*str != *pattern || !*str) - break; - - str++; - pattern++; - } - - return *pattern ? NULL : str; -} - - int parse_mount_pattern_desc (gf_mount_spec_t *mspec, char *pdesc) #define SYNTAX_ERR -2 |