search for: numret

Displaying 2 results from an estimated 2 matches for "numret".

Did you mean: numres
2010 Feb 22
2
ld: Unsatisfied symbol "options" in file ./libssh.a[hostfile.o]
...lowing is my codes: I have externed Options options like " extern Options options" in hostfile.c .......... extern Options options .......... static HostStatus check_host_in_hostfile_by_key_or_type(const char *filename, const char *host, const Key *key, int keytype, Key *found, int *numret) { FILE *f; char line[8192]; int linenum = 0; u_int kbits; char *cp, *cp2, *hashed_host; HostStatus end_return; debug3("check_host_in_hostfile: filename %s", filename); /* Open the file containing the list of known hosts. */...
2004 Oct 03
0
[patch] tell user about hosts with same key
...g " "(yes/no)? ", - host, ip, msg1, type, fp, msg2); + host, ip, msg1, msg_same_key, type, fp, msg2); xfree(fp); if (!confirm(msg)) goto fail; --- hostfile.c 2004/10/02 21:27:21 1.1 +++ hostfile.c 2004/10/02 21:57:04 @@ -197,6 +197,115 @@ found, numret)); } +void +free_hostlist(HostList *l) +{ + HostList *n; + + for (; l != NULL; l = n) { + n = l->next; + free(l->host); + free(l); + } +} + +static HostList * +add_host_to_hostlist(HostList *l, char *hostname) +{ + HostList *n = malloc(sizeof(*n)); + n->host = malloc(strlen(hostname)...