{"schema":"libjg2-1",
"vpath":"/git/",
"avatar":"/git/avatar/",
"alang":"",
"gen_ut":1745633520,
"reponame":"libwebsockets",
"desc":"libwebsockets lightweight C networking library",
"owner": { "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },"url":"https://libwebsockets.org/repo/libwebsockets",
"f":3,
"items": [
{"schema":"libjg2-1",
"cid":"5a577a14036cdca2203b1aebca33325b",
"commit": {"type":"commit",
"time": 1362014558,
"time_ofs": 480,
"oid_tree": { "oid": "cd40e202db3a40605134789aa82279c735897061", "alias": []},
"oid":{ "oid": "fc90f698b3dc67e41295c77444660bb5c16f946a", "alias": []},
"msg": "normalize formatting in gettimeofday",
"sig_commit": { "git_time": { "time": 1362014558, "offset": 480 }, "name": "Andy Green", "email": "andy.green@linaro.org", "md5": "4863edaebb4491aa6049a4d2d9c98c2c" },
"sig_author": { "git_time": { "time": 1362014558, "offset": 480 }, "name": "Andy Green", "email": "andy.green@linaro.org", "md5": "4863edaebb4491aa6049a4d2d9c98c2c" }},
"body": "normalize formatting in gettimeofday\n\nSigned-off-by: Andy Green \u003candy.green@linaro.org\u003e\n"
,
"diff": "diff --git a/win32port/win32helpers/gettimeofday.c b/win32port/win32helpers/gettimeofday.c\nindex 1bb835b..bdf8e16 100644\n--- a/win32port/win32helpers/gettimeofday.c\n+++ b/win32port/win32helpers/gettimeofday.c\n@@ -1,5 +1,6 @@\n #include \u003ctime.h\u003e\r\n-#include \u003cwindows.h\u003e //I've ommited context line.\r\n+#include \u003cwindows.h\u003e //I've ommited context line\r\n+\r\n #if defined(_MSC_VER) || defined(_MSC_EXTENSIONS)\r\n #define DELTA_EPOCH_IN_MICROSECS 11644473600000000Ui64\r\n #else\r\n@@ -12,43 +13,40 @@\n #else\r\n struct timezone \r\n {\r\n- int tz_minuteswest; /* minutes W of Greenwich */\r\n- int tz_dsttime; /* type of dst correction */\r\n+\tint tz_minuteswest;\t/* minutes W of Greenwich */\r\n+\tint tz_dsttime;\t/* type of dst correction */\r\n };\r\n #endif\r\n #endif\r\n- \r\n+\r\n int gettimeofday(struct timeval *tv, struct timezone *tz)\r\n {\r\n- FILETIME ft;\r\n- unsigned __int64 tmpres \u003d 0;\r\n- static int tzflag;\r\n- \r\n- if (NULL !\u003d tv)\r\n- {\r\n-\tGetSystemTimeAsFileTime(\u0026ft);\r\n- \r\n-\ttmpres |\u003d ft.dwHighDateTime;\r\n-\ttmpres \u003c\u003c\u003d 32;\r\n-\ttmpres |\u003d ft.dwLowDateTime;\r\n- \r\n-\t/*converting file time to unix epoch*/\r\n-\ttmpres -\u003d DELTA_EPOCH_IN_MICROSECS; \r\n-\ttmpres /\u003d 10; /*convert into microseconds*/\r\n-\ttv-\u003etv_sec \u003d (long)(tmpres / 1000000UL);\r\n-\ttv-\u003etv_usec \u003d (long)(tmpres % 1000000UL);\r\n- }\r\n- \r\n- if (NULL !\u003d tz)\r\n- {\r\n-\tif (!tzflag)\r\n-\t{\r\n-\t _tzset();\r\n-\t tzflag++;\r\n+\tFILETIME ft;\r\n+\tunsigned __int64 tmpres \u003d 0;\r\n+\tstatic int tzflag;\r\n+\r\n+\tif (NULL !\u003d tv) {\r\n+\t\tGetSystemTimeAsFileTime(\u0026ft);\r\n+\r\n+\t\ttmpres |\u003d ft.dwHighDateTime;\r\n+\t\ttmpres \u003c\u003c\u003d 32;\r\n+\t\ttmpres |\u003d ft.dwLowDateTime;\r\n+\r\n+\t\t/*converting file time to unix epoch*/\r\n+\t\ttmpres -\u003d DELTA_EPOCH_IN_MICROSECS; \r\n+\t\ttmpres /\u003d 10; /*convert into microseconds*/\r\n+\t\ttv-\u003etv_sec \u003d (long)(tmpres / 1000000UL);\r\n+\t\ttv-\u003etv_usec \u003d (long)(tmpres % 1000000UL);\r\n \t}\r\n-\ttz-\u003etz_minuteswest \u003d _timezone / 60;\r\n-\ttz-\u003etz_dsttime \u003d _daylight;\r\n- }\r\n \r\n- return 0;\r\n+\tif (NULL !\u003d tz) {\r\n+\t\tif (!tzflag) {\r\n+\t\t\t_tzset();\r\n+\t\t\ttzflag++;\r\n+\t\t}\r\n+\t\ttz-\u003etz_minuteswest \u003d _timezone / 60;\r\n+\t\ttz-\u003etz_dsttime \u003d _daylight;\r\n+\t}\r\n+\r\n+\treturn 0;\r\n }\r\n","s":{"c":1745633520,"u": 601}}
],"g": 1921,"chitpc": 0,"ehitpc": 0,"indexed":0
,
"ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}