Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
e19c2037
Commit
e19c2037
authored
20 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
typecase to fix win32 compiler warning (and intended as other code is)
parent
8817779f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ares/ares_gethostbyaddr.c
+11
-12
11 additions, 12 deletions
ares/ares_gethostbyaddr.c
with
11 additions
and
12 deletions
ares/ares_gethostbyaddr.c
+
11
−
12
View file @
e19c2037
...
...
@@ -147,21 +147,20 @@ static int file_lookup(struct in_addr *addr, struct hostent **host)
int
status
;
#ifdef WIN32
char
PATH_HOSTS
[
MAX_PATH
];
if
(
IS_NT
())
{
char
tmp
[
MAX_PATH
];
HKEY
hkeyHosts
;
char
tmp
[
MAX_PATH
];
HKEY
hkeyHosts
;
if
(
RegOpenKeyEx
(
HKEY_LOCAL_MACHINE
,
WIN_NS_NT_KEY
,
0
,
KEY_READ
,
&
hkeyHosts
)
==
ERROR_SUCCESS
)
{
DWORD
dwLength
=
MAX_PATH
;
RegQueryValueEx
(
hkeyHosts
,
DATABASEPATH
,
NULL
,
NULL
,
tmp
,
&
dwLength
);
ExpandEnvironmentStrings
(
tmp
,
PATH_HOSTS
,
MAX_PATH
);
RegCloseKey
(
hkeyHosts
);
}
if
(
RegOpenKeyEx
(
HKEY_LOCAL_MACHINE
,
WIN_NS_NT_KEY
,
0
,
KEY_READ
,
&
hkeyHosts
)
==
ERROR_SUCCESS
)
{
DWORD
dwLength
=
MAX_PATH
;
RegQueryValueEx
(
hkeyHosts
,
DATABASEPATH
,
NULL
,
NULL
,
(
LPBYTE
)
tmp
,
&
dwLength
);
ExpandEnvironmentStrings
(
tmp
,
PATH_HOSTS
,
MAX_PATH
);
RegCloseKey
(
hkeyHosts
);
}
}
else
GetWindowsDirectory
(
PATH_HOSTS
,
MAX_PATH
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment