Simplify offline_status_updated() implementation.

This commit gets rid of the memcpy() and uses simple assignment instead.
Additionally, this commit removes unnecessary #includes (now that there
is no manual memory management).