Commit 6e602566 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

(gettimeofday): Use struct _timeb, not struct timeb.

(open_unc_volume): Cast return value of map_w32_filename, to avoid
compiler warnings.
parent cce55b8e
......@@ -1273,7 +1273,7 @@ get_emacs_configuration_options (void)
void
gettimeofday (struct timeval *tv, struct timezone *tz)
{
struct timeb tb;
struct _timeb tb;
_ftime (&tb);
tv->tv_sec = tb.time;
......@@ -1777,7 +1777,7 @@ open_unc_volume (const char *path)
nr.dwDisplayType = RESOURCEDISPLAYTYPE_SERVER;
nr.dwUsage = RESOURCEUSAGE_CONTAINER;
nr.lpLocalName = NULL;
nr.lpRemoteName = map_w32_filename (path, NULL);
nr.lpRemoteName = (LPSTR)map_w32_filename (path, NULL);
nr.lpComment = NULL;
nr.lpProvider = NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment