Skip to content

Commit

Permalink
Minor memory access optimization in hit_buzzer()
Browse files Browse the repository at this point in the history
  • Loading branch information
gzachos committed Aug 2, 2018
1 parent c99ae7a commit e35de04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion door-monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ void *hit_buzzer(void *arg)
if (!arg)
return ((void *) EXIT_FAILURE);

req_timestamp = get_timestamp(((thrarg_t *) arg)->req_timeval);
opendoor_time = ((thrarg_t *) arg)->req_timeval;
req_timestamp = get_timestamp(opendoor_time);

for (i = 0; i < 3; i++)
{
Expand Down

0 comments on commit e35de04

Please sign in to comment.