]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/dnssrv.c
Merge remote-tracking branch 'origin/mdb.RE/0.9'
[openldap] / libraries / libldap / dnssrv.c
index da89b4a26983dbc68c921ef54d51bef52e28419f..e4c6580320ad44efb5f22f5486b4d25a65add980 100644 (file)
@@ -399,7 +399,7 @@ add_size:;
         if(cur>0){
             hostlist[cur++]=' ';
         }
-        cur += sprintf(&hostlist[cur], "%s:%hd", hostent_head[i].hostname, hostent_head[i].port);
+        cur += sprintf(&hostlist[cur], "%s:%hu", hostent_head[i].hostname, hostent_head[i].port);
     }
     }