Upgrade libgit2
[TortoiseGit.git] / src / TortoisePlink / utils / conf_dest.c
bloba5835c0906d092e8c8f6cc2a26f2dc1c2a70626b
1 /*
2 * Decide whether the 'host name' or 'serial line' field of a Conf is
3 * important, based on which protocol it has selected.
4 */
6 #include "putty.h"
8 char const *conf_dest(Conf *conf)
10 if (conf_get_int(conf, CONF_protocol) == PROT_SERIAL)
11 return conf_get_str(conf, CONF_serline);
12 else
13 return conf_get_str(conf, CONF_host);