compare_snapshots(): Add const keyword.