Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Tabs to spaces conversion

  • Loading branch information...
commit b5a91cbebda41da9d41ac5ab225493a59f1e91ed 1 parent 59d26d3
Dan McGee toofishes authored

Showing 1 changed file with 7 additions and 7 deletions. Show diff stats Hide diff stats

  1. +7 7 shairport.c
14 shairport.c
@@ -376,13 +376,13 @@ static void handleClient(int pSock, char *pPassword, char *pHWADDR)
376 376 port = ntohs(s->sin6_port);
377 377 inet_ntop(AF_INET6, &s->sin6_addr, ipstr, sizeof ipstr);
378 378
379   - union {
380   - struct sockaddr_in6 s;
381   - unsigned char bin[sizeof(struct sockaddr_in6)];
382   - } addr;
383   - memcpy(&addr.s, &s->sin6_addr, sizeof(struct sockaddr_in6));
384   -
385   - if(memcmp(&addr.bin[0], "\x00\x00\x00\x00" "\x00\x00\x00\x00" "\x00\x00\xff\xff", 12) == 0)
  379 + union {
  380 + struct sockaddr_in6 s;
  381 + unsigned char bin[sizeof(struct sockaddr_in6)];
  382 + } addr;
  383 + memcpy(&addr.s, &s->sin6_addr, sizeof(struct sockaddr_in6));
  384 +
  385 + if(memcmp(&addr.bin[0], "\x00\x00\x00\x00" "\x00\x00\x00\x00" "\x00\x00\xff\xff", 12) == 0)
386 386 {
387 387 // its ipv4...
388 388 memcpy(ipbin, &addr.bin[12], 4);

0 comments on commit b5a91cb

Please sign in to comment.
Something went wrong with that request. Please try again.