summaryrefslogtreecommitdiff
path: root/src/tutorial
diff options
context:
space:
mode:
Diffstat (limited to 'src/tutorial')
-rw-r--r--src/tutorial/funcs.c6
-rw-r--r--src/tutorial/funcs_new.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/tutorial/funcs.c b/src/tutorial/funcs.c
index 3c78f336fc0..721c0c87fcd 100644
--- a/src/tutorial/funcs.c
+++ b/src/tutorial/funcs.c
@@ -25,7 +25,7 @@ float8 *add_one_float8(float8 *arg);
Point *makepoint(Point *pointx, Point *pointy);
text *copytext(text *t);
text *concat_text(text *arg1, text *arg2);
-bool c_overpaid(HeapTupleHeader t, /* the current instance of EMP */
+bool c_overpaid(HeapTupleHeader t, /* the current instance of EMP */
int32 limit);
@@ -75,9 +75,9 @@ copytext(text *t)
/*
* VARDATA is a pointer to the data region of the struct.
*/
- memcpy((void *) VARDATA(new_t), /* destination */
+ memcpy((void *) VARDATA(new_t), /* destination */
(void *) VARDATA(t), /* source */
- VARSIZE(t) - VARHDRSZ); /* how many bytes */
+ VARSIZE(t) - VARHDRSZ); /* how many bytes */
return new_t;
}
diff --git a/src/tutorial/funcs_new.c b/src/tutorial/funcs_new.c
index 2e09f8de6e7..091ca639cf1 100644
--- a/src/tutorial/funcs_new.c
+++ b/src/tutorial/funcs_new.c
@@ -81,9 +81,9 @@ copytext(PG_FUNCTION_ARGS)
* VARDATA is a pointer to the data region of the new struct. The source
* could be a short datum, so retrieve its data through VARDATA_ANY.
*/
- memcpy((void *) VARDATA(new_t), /* destination */
- (void *) VARDATA_ANY(t), /* source */
- VARSIZE_ANY_EXHDR(t)); /* how many bytes */
+ memcpy((void *) VARDATA(new_t), /* destination */
+ (void *) VARDATA_ANY(t), /* source */
+ VARSIZE_ANY_EXHDR(t)); /* how many bytes */
PG_RETURN_TEXT_P(new_t);
}