diff options
| author | Kevin Wolf <kwolf@redhat.com> | 2013-06-05 14:19:35 +0200 |
|---|---|---|
| committer | Stefan Hajnoczi <stefanha@redhat.com> | 2013-06-06 11:27:04 +0200 |
| commit | a38ed811474e953371f848233208c2026c2d1195 (patch) | |
| tree | 08bc59922e82314ebfaae0faa305244454982eab /cmd.c | |
| parent | e681be7eca0143fe7259ce8233fe5dd8898d072f (diff) | |
| download | focaccia-qemu-a38ed811474e953371f848233208c2026c2d1195.tar.gz focaccia-qemu-a38ed811474e953371f848233208c2026c2d1195.zip | |
qemu-io: Move qemu_strsep() to cutils.c
Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'cmd.c')
| -rw-r--r-- | cmd.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/cmd.c b/cmd.c index 8496e74d64..f6bf2c5f9a 100644 --- a/cmd.c +++ b/cmd.c @@ -255,27 +255,6 @@ fetchline(void) } #endif -static char *qemu_strsep(char **input, const char *delim) -{ - char *result = *input; - if (result != NULL) { - char *p; - - for (p = result; *p != '\0'; p++) { - if (strchr(delim, *p)) { - break; - } - } - if (*p == '\0') { - *input = NULL; - } else { - *p = '\0'; - *input = p + 1; - } - } - return result; -} - char **breakline(char *input, int *count) { int c = 0; |