version 1.1.1.1, 2018/04/24 17:21:29
|
version 1.1.1.2, 2018/04/24 17:35:11
|
Line 21
|
Line 21
|
#include <ctype.h> |
#include <ctype.h> |
#include <errno.h> |
#include <errno.h> |
#include <sys/time.h> |
#include <sys/time.h> |
|
#include <getopt.h> |
|
|
#include "cmd.h" |
#include "cmd.h" |
|
|
#define _(x) x /* not gettext support yet */ |
#define _(x) x /* not gettext support yet */ |
|
|
extern int optind; |
|
|
|
/* from libxcmd/command.c */ |
/* from libxcmd/command.c */ |
|
|
cmdinfo_t *cmdtab; |
cmdinfo_t *cmdtab; |
Line 288 static char *qemu_strsep(char **input, c
|
Line 287 static char *qemu_strsep(char **input, c
|
{ |
{ |
char *result = *input; |
char *result = *input; |
if (result != NULL) { |
if (result != NULL) { |
char *p = result; |
char *p = result; |
for (p = result; *p != '\0'; p++) { |
for (p = result; *p != '\0'; p++) { |
if (strchr(delim, *p)) { |
if (strchr(delim, *p)) { |
break; |
break; |
} |
} |
} |
} |