[BACK]Return to eval.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libwrap

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libwrap/eval.c between version 1.6.56.1 and 1.6.56.2

version 1.6.56.1, 2012/04/23 16:48:56 version 1.6.56.2, 2012/04/23 23:40:41
Line 49  char    paranoid[] = STRING_PARANOID;
Line 49  char    paranoid[] = STRING_PARANOID;
   
 /* eval_user - look up user name */  /* eval_user - look up user name */
   
 char   *  char   *eval_user(request)
 eval_user(struct request_info *request)  struct request_info *request;
 {  {
     if (request->user[0] == 0) {      if (request->user[0] == 0) {
         (void)strlcpy(request->user, unknown, sizeof(request->user));          (void)strlcpy(request->user, unknown, sizeof(request->user));
Line 62  eval_user(struct request_info *request)
Line 62  eval_user(struct request_info *request)
   
 /* eval_hostaddr - look up printable address */  /* eval_hostaddr - look up printable address */
   
 char   *  char   *eval_hostaddr(host)
 eval_hostaddr(struct host_info *host)  struct host_info *host;
 {  {
     if (host->addr[0] == 0) {      if (host->addr[0] == 0) {
         (void)strlcpy(host->addr, unknown, sizeof(host->addr));          (void)strlcpy(host->addr, unknown, sizeof(host->addr));
Line 75  eval_hostaddr(struct host_info *host)
Line 75  eval_hostaddr(struct host_info *host)
   
 /* eval_hostname - look up host name */  /* eval_hostname - look up host name */
   
 char   *  char   *eval_hostname(host)
 eval_hostname(struct host_info *host)  struct host_info *host;
 {  {
     if (host->name[0] == 0) {      if (host->name[0] == 0) {
         (void)strlcpy(host->name, unknown, sizeof(host->name));          (void)strlcpy(host->name, unknown, sizeof(host->name));
Line 88  eval_hostname(struct host_info *host)
Line 88  eval_hostname(struct host_info *host)
   
 /* eval_hostinfo - return string with host name (preferred) or address */  /* eval_hostinfo - return string with host name (preferred) or address */
   
 char   *  char   *eval_hostinfo(host)
 eval_hostinfo(struct host_info *host)  struct host_info *host;
 {  {
     char   *hostname;      char   *hostname;
   
Line 107  eval_hostinfo(struct host_info *host)
Line 107  eval_hostinfo(struct host_info *host)
   
 /* eval_client - return string with as much about the client as we know */  /* eval_client - return string with as much about the client as we know */
   
 char   *  char   *eval_client(request)
 eval_client(struct request_info *request)  struct request_info *request;
 {  {
     static char both[2 * STRING_LENGTH];      static char both[2 * STRING_LENGTH];
     char   *hostinfo = eval_hostinfo(request->client);      char   *hostinfo = eval_hostinfo(request->client);
Line 127  eval_client(struct request_info *request
Line 127  eval_client(struct request_info *request
   
 /* eval_server - return string with as much about the server as we know */  /* eval_server - return string with as much about the server as we know */
   
 char   *  char   *eval_server(request)
 eval_server(struct request_info *request)  struct request_info *request;
 {  {
     static char both[2 * STRING_LENGTH];      static char both[2 * STRING_LENGTH];
     char   *host = eval_hostinfo(request->server);      char   *host = eval_hostinfo(request->server);

Legend:
Removed from v.1.6.56.1  
changed lines
  Added in v.1.6.56.2

CVSweb <webmaster@jp.NetBSD.org>