mirror of
https://github.com/lammertb/libhttp.git
synced 2025-09-03 01:21:16 +03:00
Autoformat after merge
This commit is contained in:
@@ -1453,13 +1453,23 @@ static void sockaddr_to_string(char *buf, size_t len, const union usa *usa)
|
||||
}
|
||||
|
||||
if (usa->sa.sa_family == AF_INET) {
|
||||
getnameinfo(
|
||||
&usa->sa, sizeof(usa->sin), buf, (unsigned)len, NULL, 0, NI_NUMERICHOST);
|
||||
getnameinfo(&usa->sa,
|
||||
sizeof(usa->sin),
|
||||
buf,
|
||||
(unsigned)len,
|
||||
NULL,
|
||||
0,
|
||||
NI_NUMERICHOST);
|
||||
}
|
||||
#if defined(USE_IPV6)
|
||||
else if (usa->sa.sa_family == AF_INET6) {
|
||||
getnameinfo(
|
||||
&usa->sa, sizeof(usa->sin6), buf, (unsigned)len, NULL, 0, NI_NUMERICHOST);
|
||||
getnameinfo(&usa->sa,
|
||||
sizeof(usa->sin6),
|
||||
buf,
|
||||
(unsigned)len,
|
||||
NULL,
|
||||
0,
|
||||
NI_NUMERICHOST);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@@ -1079,7 +1079,8 @@ struct tstring_input_buf {
|
||||
char *buffer;
|
||||
};
|
||||
|
||||
static INT_PTR CALLBACK InputDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lP)
|
||||
static INT_PTR CALLBACK
|
||||
InputDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lP)
|
||||
{
|
||||
static struct tstring_input_buf *inBuf = 0;
|
||||
WORD ctrlId;
|
||||
@@ -1094,8 +1095,9 @@ static INT_PTR CALLBACK InputDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM
|
||||
ctrlId = LOWORD(wParam);
|
||||
if (ctrlId == IDOK) {
|
||||
/* Add user */
|
||||
GetWindowText(
|
||||
GetDlgItem(hDlg, ID_INPUT_LINE), inBuf->buffer, (int)inBuf->buflen);
|
||||
GetWindowText(GetDlgItem(hDlg, ID_INPUT_LINE),
|
||||
inBuf->buffer,
|
||||
(int)inBuf->buflen);
|
||||
if (strlen(inBuf->buffer) > 0) {
|
||||
EndDialog(hDlg, IDOK);
|
||||
}
|
||||
|
Reference in New Issue
Block a user