#include <ctype.h>
#include <errno.h>
#include <sys/time.h>
+#include <getopt.h>
#include "cmd.h"
#define _(x) x /* not gettext support yet */
-extern int optind;
-
/* from libxcmd/command.c */
cmdinfo_t *cmdtab;
{
char *result = *input;
if (result != NULL) {
- char *p = result;
- for (p = result; *p != '\0'; p++) {
- if (strchr(delim, *p)) {
+ char *p;
+
+ for (p = result; *p != '\0'; p++) {
+ if (strchr(delim, *p)) {
break;
}
}