1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

libreplace: remove trailing white spaces.

Michael
(cherry picked from commit 1f9ca7eed965904f67cf78fbac007432b8a057fd)
(This used to be commit a1d24f110b3edff636174e017eb56ba5b10df590)
This commit is contained in:
Michael Adam 2008-03-18 13:10:22 +01:00 committed by Stefan Metzmacher
parent 5c73dabd49
commit e88e6568e4
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ char *rep_inet_ntoa(struct in_addr ip)
{
uint8_t *p = (uint8_t *)&ip.s_addr;
static char buf[18];
slprintf(buf, 17, "%d.%d.%d.%d",
slprintf(buf, 17, "%d.%d.%d.%d",
(int)p[0], (int)p[1], (int)p[2], (int)p[3]);
return buf;
}

View File

@ -11,7 +11,7 @@ AC_TRY_RUN([
#endif
main() { struct in_addr ip; ip.s_addr = 0x12345678;
if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
exit(1);}],
libreplace_cv_REPLACE_INET_NTOA=yes,libreplace_cv_REPLACE_INET_NTOA=no,libreplace_cv_REPLACE_INET_NTOA=cross)])
if test x"$libreplace_cv_REPLACE_INET_NTOA" = x"yes"; then