Skip to content

Instantly share code, notes, and snippets.

@KristianLyng
Created February 11, 2013 11:03
Show Gist options
  • Select an option

  • Save KristianLyng/4753868 to your computer and use it in GitHub Desktop.

Select an option

Save KristianLyng/4753868 to your computer and use it in GitHub Desktop.
195 unsigned char *foo = (unsigned char *)&info->client_addr->sin_addr.s_addr;
196 logger(http->logger, "%hhu.%hhu.%hhu.%hhu:%d - %s %s", foo[0], foo[1], foo[2], foo[3], info->client_addr->sin_port, method, url);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment