X-Git-Url: http://www.project-moonshot.org/gitweb/?p=trust_router.git;a=blobdiff_plain;f=trp%2Ftrp_peer_encoders.c;h=48f74c5ddea3f30540043aee26f41a19d1adafb3;hp=a1cc64fa829cfd83c19e8073ae62eecb780c9693;hb=fe3b5cb31ab0d19c2ead6465f82ceb749bf05b75;hpb=887460bd1bab873bb5c3d783f61bd5745ada3cb2 diff --git a/trp/trp_peer_encoders.c b/trp/trp_peer_encoders.c index a1cc64f..48f74c5 100644 --- a/trp/trp_peer_encoders.c +++ b/trp/trp_peer_encoders.c @@ -51,7 +51,7 @@ char *trp_peer_to_str(TALLOC_CTX *memctx, TRP_PEER *peer, const char *sep) } /* helper for encoding to json */ -static json_t *server_to_json_string(const char *server, unsigned int port) +static json_t *server_to_json_string(const char *server, int port) { char *s = talloc_asprintf(NULL, "%s:%u", server, port); json_t *jstr = json_string(s);