static void adapt_fetch_registers ();
static int adapt_store_registers ();
static void adapt_close ();
-static int adapt_clear_breakpoints()
+static int adapt_clear_breakpoints();
/*
* Processor types. It is assumed that the adapt has the correct
/* Find the first whitespace character, it separates dev_name from
prog_name. */
for (p = name;
- *p != '\0' && !isspace (*p); p++)
+ p && *p && !isspace (*p); p++)
;
- if (*p == '\0')
+ if (p == 0 || *p == '\0')
erroid:
error ("Usage : <command> <serial-device> <baud-rate> [progname]");
dev_name = (char*)malloc (p - name + 1);