From a0e87ad7a507274d385340a8a2cc8cde39b2c220 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Thu, 7 Sep 2006 15:37:25 +0000 Subject: Specify lo_write() to take a _const_ buffer, to match documentation. --- src/include/libpq/be-fsstubs.h | 4 ++-- src/include/storage/large_object.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/include') diff --git a/src/include/libpq/be-fsstubs.h b/src/include/libpq/be-fsstubs.h index 9703dc5cc1..961bfb6c68 100644 --- a/src/include/libpq/be-fsstubs.h +++ b/src/include/libpq/be-fsstubs.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/libpq/be-fsstubs.h,v 1.26 2006/03/05 15:58:56 momjian Exp $ + * $PostgreSQL: pgsql/src/include/libpq/be-fsstubs.h,v 1.27 2006/09/07 15:37:25 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -41,7 +41,7 @@ extern Datum lo_unlink(PG_FUNCTION_ARGS); * but too late now... */ extern int lo_read(int fd, char *buf, int len); -extern int lo_write(int fd, char *buf, int len); +extern int lo_write(int fd, const char *buf, int len); /* * Cleanup LOs at xact commit/abort diff --git a/src/include/storage/large_object.h b/src/include/storage/large_object.h index ce37e83345..ebb7be8136 100644 --- a/src/include/storage/large_object.h +++ b/src/include/storage/large_object.h @@ -8,7 +8,7 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/storage/large_object.h,v 1.34 2006/04/26 00:34:57 tgl Exp $ + * $PostgreSQL: pgsql/src/include/storage/large_object.h,v 1.35 2006/09/07 15:37:25 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -77,6 +77,6 @@ extern int inv_drop(Oid lobjId); extern int inv_seek(LargeObjectDesc *obj_desc, int offset, int whence); extern int inv_tell(LargeObjectDesc *obj_desc); extern int inv_read(LargeObjectDesc *obj_desc, char *buf, int nbytes); -extern int inv_write(LargeObjectDesc *obj_desc, char *buf, int nbytes); +extern int inv_write(LargeObjectDesc *obj_desc, const char *buf, int nbytes); #endif /* LARGE_OBJECT_H */ -- cgit v1.2.1