~ubuntu-branches/debian/lenny/net-snmp/lenny

« back to all changes in this revision

Viewing changes to snmplib/snmpUDPDomain.c

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2007-05-10 22:20:23 UTC
  • Revision ID: james.westby@ubuntu.com-20070510222023-3fr07xb9i17xvq32
Tags: upstream-5.3.1
ImportĀ upstreamĀ versionĀ 5.3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
    } else {
91
91
        char tmp[64];
92
92
 
93
 
        sprintf(tmp, "UDP: [%s]:%hd",
 
93
        sprintf(tmp, "UDP: [%s]:%hu",
94
94
                inet_ntoa(to->sin_addr), ntohs(to->sin_port));
95
95
        return strdup(tmp);
96
96
    }
171
171
        while (rc < 0) {
172
172
            rc = sendto(t->sock, buf, size, 0, to, sizeof(struct sockaddr));
173
173
            if (rc < 0 && errno != EINTR) {
 
174
                DEBUGMSGTL(("netsnmp_udp", "sendto error, rc %d (errno %d)\n",
 
175
                            rc, errno));
174
176
                break;
175
177
            }
176
178
        }