summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
3bd5ce2)
Replace with calls to getcpy() or mh_xstrdup().
static char **client_brkstring (char *, char *, char *);
static int client_brkany (char, char *);
static char **client_copyip (char **, char **, int);
static char **client_brkstring (char *, char *, char *);
static int client_brkany (char, char *);
static char **client_copyip (char **, char **, int);
-static char *client_getcpy (char *);
static void client_freelist(char **);
static void client_freelist(char **);
ap = arguments;
if (args != NULL && *args != 0) {
ap = arguments;
if (args != NULL && *args != 0) {
- ap = client_copyip (client_brkstring (client_getcpy (args), " ", "\n"),
+ ap = client_copyip (client_brkstring (getcpy(args), " ", "\n"),
ap, MAXARGS);
} else {
if (servers != NULL && *servers != 0)
ap, MAXARGS);
} else {
if (servers != NULL && *servers != 0)
- ap = client_copyip (client_brkstring (client_getcpy (servers), " ", "\n"),
+ ap = client_copyip (client_brkstring (getcpy(servers), " ", "\n"),
ap, MAXARGS);
}
if (ap == arguments) {
ap, MAXARGS);
}
if (ap == arguments) {
- *ap++ = client_getcpy ("localhost");
+ *ap++ = mh_xstrdup("localhost");
-
-
-static char *
-client_getcpy (char *str)
-{
- char *cp;
- size_t len;
-
- len = strlen(str) + 1;
- cp = mh_xmalloc(len);
-
- memcpy (cp, str, len);
- return cp;
-}