~ubuntu-branches/ubuntu/quantal/ceph/quantal

« back to all changes in this revision

Viewing changes to src/include/addr_parsing.c

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2012-08-27 08:23:21 UTC
  • mto: This revision was merged to the branch mainline in revision 21.
  • Revision ID: package-import@ubuntu.com-20120827082321-2cfej6ddvk63vsqq
Tags: upstream-0.48.1
ImportĀ upstreamĀ versionĀ 0.48.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
 
104
104
    r = getaddrinfo(tok, port_str, &hint, &res);
105
105
    if (r < 0) {
106
 
      char error_buf[80];
107
106
      printf("server name not found: %s (%s)\n", tok,
108
 
             strerror_r(errno, error_buf, sizeof(error_buf)));
 
107
             gai_strerror(r));
109
108
      free(new_str);
110
109
      free(buf);
111
110
      return 0;