From 0f604439f59a640b3272dff0cd0e34f64609d80e Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Thu, 5 Mar 2015 18:24:19 +0100 Subject: [PATCH] api: fix high port numbers and convert ccminer.rc from utf-16 to Latin1 (doesnt want utf-8), required for git diff/merge/rebase... --- api.cpp | 2 +- res/ccminer.rc | Bin 4120 -> 2359 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/api.cpp b/api.cpp index 99bb9bf..cdce35c 100644 --- a/api.cpp +++ b/api.cpp @@ -722,7 +722,7 @@ static bool check_connect(struct sockaddr_in *cli, char **connectaddr, char *gro static void api() { const char *addr = opt_api_allow; - short int port = opt_api_listen; // 4068 + unsigned short port = (unsigned short) opt_api_listen; // 4068 char buf[MYBUFSIZ]; int c, n, bound; char *connectaddr; diff --git a/res/ccminer.rc b/res/ccminer.rc index c913f0e76ed750f549987167389b0826b71597c9..2512c3cf064cd597c53c87217df11ed1bdda560c 100644 GIT binary patch literal 2359 zcmcIlUvHv75Pvt}JIv7+O+7_xo7^J;dZZMLh-s51WP^)tf{WS3>ow^Yyl-{0NIAT= z_Qmeg?)+osH@_MBeYj(Z$Yq`uuw-&iGO#W$VNE#|q@XJhROWk;P>_jWyP~JH`hBf+ z!FZDGR}}PDeQ%>{EmW*%$~Xmc7A_*&4dS_D+JWyq#Nor;IPgN{f5vl2r{9NZopCDi zEfgCH3+H~}`j!{j4h-u;-c<0!I2KXmf5y~Goc0_6Ifcd--~lFIXM{;;|0zfzzek+O zPF=q&+r(1%c4*bAZBFj7O<@qtEhn};uLCbH&{QtW`80O?sH3$!)1OA>)B$xt+0=8x zpIr!}aZ?aS*yoF#AnPrGBwx{ZN7l4G7+w!ChN4e;1dHo0gImY`0xVR>CJ_#N(OQG1 z5VY3VnYzB#0z3^$KN?7C$H&C9*6@VKzj4rOHtCPzk)wMVvKi>=M4*p+E+}7N%kW@1 z^=#F!sr=5&T*Y4emYd}K6|?FIPpsHLmOoKhfNR4qlI$;e_DXT7f@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