Commit 66441540 authored by Artem Prilutskiy's avatar Artem Prilutskiy

Fixed typo

parent 80b8de6c
...@@ -208,7 +208,7 @@ int main(int argc, char* argv[]) ...@@ -208,7 +208,7 @@ int main(int argc, char* argv[])
if (result != CLIENT_ERROR_SUCCESS) if (result != CLIENT_ERROR_SUCCESS)
{ {
printf("Waiting limit exceeded (%i)\n", result); printf("Waiting limit exceeded (%i)\n", result);
TransmitRewindCloae(context); TransmitRewindClose(context);
ReleaseRewindContext(context); ReleaseRewindContext(context);
return EXIT_FAILURE; return EXIT_FAILURE;
...@@ -300,7 +300,7 @@ int main(int argc, char* argv[]) ...@@ -300,7 +300,7 @@ int main(int argc, char* argv[])
// Clean up // Clean up
close(handle); close(handle);
TransmitRewindCloae(context); TransmitRewindClose(context);
ReleaseRewindContext(context); ReleaseRewindContext(context);
printf("Done\n"); printf("Done\n");
......
...@@ -226,11 +226,11 @@ int ConnectRewindClient(struct RewindContext* context, const char* location, con ...@@ -226,11 +226,11 @@ int ConnectRewindClient(struct RewindContext* context, const char* location, con
memset(&hints, 0, sizeof(hints)); memset(&hints, 0, sizeof(hints));
hints.ai_socktype = SOCK_DGRAM; hints.ai_socktype = SOCK_DGRAM;
#ifdef __linux__ #ifdef __linux__
hints.ai_flags = AI_ADDRCONFIG; hints.ai_flags = AI_ADDRCONFIG;
hints.ai_family = AF_UNSPEC; hints.ai_family = AF_UNSPEC;
#endif #endif
#ifdef __MACH__ #ifdef __MACH__
hints.ai_flags = AI_V4MAPPED; hints.ai_flags = AI_V4MAPPED;
hints.ai_family = AF_INET6; hints.ai_family = AF_INET6;
#endif #endif
...@@ -336,13 +336,13 @@ int WaitForRewindSessionEnd(struct RewindContext* context, struct RewindSessionP ...@@ -336,13 +336,13 @@ int WaitForRewindSessionEnd(struct RewindContext* context, struct RewindSessionP
break; break;
case REWIND_TYPE_SESSION_POLL: case REWIND_TYPE_SESSION_POLL:
if ((response->state == 0) && if ((response->state == 0) &&
(threshold2.tv_sec == 0)) (threshold2.tv_sec == 0))
{ {
threshold2.tv_sec = now.tv_sec + interval2; threshold2.tv_sec = now.tv_sec + interval2;
threshold2.tv_usec = now.tv_usec; threshold2.tv_usec = now.tv_usec;
} }
if ((response->state != 0) && if ((response->state != 0) &&
(threshold2.tv_sec != 0)) (threshold2.tv_sec != 0))
{ {
threshold2.tv_sec = 0; threshold2.tv_sec = 0;
......
...@@ -52,7 +52,7 @@ int ConnectRewindClient(struct RewindContext* context, const char* location, con ...@@ -52,7 +52,7 @@ int ConnectRewindClient(struct RewindContext* context, const char* location, con
int WaitForRewindSessionEnd(struct RewindContext* context, struct RewindSessionPollData* request, time_t interval1, time_t interval2); int WaitForRewindSessionEnd(struct RewindContext* context, struct RewindSessionPollData* request, time_t interval1, time_t interval2);
#define TransmitRewindKeepAlive(context) TransmitRewindData(context, REWIND_TYPE_KEEP_ALIVE, REWIND_FLAG_NONE, context->data, context->length); #define TransmitRewindKeepAlive(context) TransmitRewindData(context, REWIND_TYPE_KEEP_ALIVE, REWIND_FLAG_NONE, context->data, context->length);
#define TransmitRewindCloae(context) TransmitRewindData(context, REWIND_TYPE_CLOSE, REWIND_FLAG_NONE, NULL, 0 ); #define TransmitRewindClose(context) TransmitRewindData(context, REWIND_TYPE_CLOSE, REWIND_FLAG_NONE, NULL, 0 );
#ifdef __cplusplus #ifdef __cplusplus
} }
......
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