@@ -792,8 +792,8 @@ int scitoken_status_get_timeout_val(const SciTokenStatus *status,
792792 return -1 ;
793793 }
794794
795- auto real_status = reinterpret_cast <const scitokens::AsyncStatus *>(status);
796- struct timeval timeout_internal = real_status->get_timeout_val (expiry_time);
795+ auto real_status = reinterpret_cast <const scitokens::SciTokenAsyncStatus *>(* status);
796+ struct timeval timeout_internal = real_status->m_status -> get_timeout_val (expiry_time);
797797 timeout->tv_sec = timeout_internal.tv_sec ;
798798 timeout->tv_usec = timeout_internal.tv_usec ;
799799 return 0 ;
@@ -814,8 +814,8 @@ int scitoken_status_get_read_fd_set(SciTokenStatus *status,
814814 return -1 ;
815815 }
816816
817- auto real_status = reinterpret_cast <scitokens::AsyncStatus *>(status);
818- *read_fd_set = real_status->get_read_fd_set ();
817+ auto real_status = reinterpret_cast <const scitokens::SciTokenAsyncStatus *>(* status);
818+ *read_fd_set = real_status->m_status -> get_read_fd_set ();
819819 return 0 ;
820820}
821821
@@ -834,8 +834,8 @@ int scitoken_status_get_write_fd_set(SciTokenStatus *status,
834834 return -1 ;
835835 }
836836
837- auto real_status = reinterpret_cast <scitokens::AsyncStatus *>(status);
838- *write_fd_set = real_status->get_write_fd_set ();
837+ auto real_status = reinterpret_cast <const scitokens::SciTokenAsyncStatus *>(* status);
838+ *write_fd_set = real_status->m_status -> get_write_fd_set ();
839839 return 0 ;
840840}
841841
@@ -854,8 +854,8 @@ int scitoken_status_get_exc_fd_set(SciTokenStatus *status, fd_set **exc_fd_set,
854854 return -1 ;
855855 }
856856
857- auto real_status = reinterpret_cast <scitokens::AsyncStatus *>(status);
858- *exc_fd_set = real_status->get_exc_fd_set ();
857+ auto real_status = reinterpret_cast <const scitokens::SciTokenAsyncStatus *>(* status);
858+ *exc_fd_set = real_status->m_status -> get_exc_fd_set ();
859859 return 0 ;
860860}
861861
@@ -874,8 +874,8 @@ int scitoken_status_get_max_fd(const SciTokenStatus *status, int *max_fd,
874874 return -1 ;
875875 }
876876
877- auto real_status = reinterpret_cast <const scitokens::AsyncStatus *>(status);
878- *max_fd = real_status->get_max_fd ();
877+ auto real_status = reinterpret_cast <const scitokens::SciTokenAsyncStatus *>(* status);
878+ *max_fd = real_status->m_status -> get_max_fd ();
879879 return 0 ;
880880}
881881
0 commit comments