@@ -684,8 +684,8 @@ my_picksplit(PG_FUNCTION_ARGS)
684684
685685 /*
686686 * Choose where to put the index entries and update unionL and unionR
687- * accordingly. Append the entries to eitherv_spl_left or
688- *v_spl_right , and care about the counters.
687+ * accordingly. Append the entries to eitherv->spl_left or
688+ *v->spl_right , and care about the counters.
689689 */
690690
691691 if (my_choice_is_left(unionL, curl, unionR, curr))
@@ -896,7 +896,7 @@ Datum
896896my_fetch(PG_FUNCTION_ARGS)
897897{
898898 GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
899- input_data_type *in =DatumGetP (entry->key);
899+ input_data_type *in =DatumGetPointer (entry->key);
900900 fetched_data_type *fetched_data;
901901 GISTENTRY *retval;
902902
@@ -907,7 +907,7 @@ my_fetch(PG_FUNCTION_ARGS)
907907 * Convert 'fetched_data' into the a Datum of the original datatype.
908908 */
909909
910- /* fill *retval fromfetch_data . */
910+ /* fill *retval fromfetched_data . */
911911 gistentryinit(*retval, PointerGetDatum(converted_datum),
912912 entry->rel, entry->page, entry->offset, FALSE);
913913