Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit143a5eb

Browse files
author
Nikita Glukhov
committed
Fix appendToBuffer() signature
1 parent850ec37 commit143a5eb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎src/backend/utils/adt/jsonb_util.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ static void convertJsonbObject(StringInfo buffer, JEntry *header, const JsonbVal
9090
staticvoidconvertJsonbBinary(StringInfobuffer,JEntry*header,constJsonbValue*val,intlevel);
9191
staticvoidconvertJsonbScalar(StringInfobuffer,JEntry*header,constJsonbValue*scalarVal);
9292

93-
staticvoidcopyToBuffer(StringInfobuffer,intoffset,constchar*data,intlen);
93+
staticvoidcopyToBuffer(StringInfobuffer,intoffset,constvoid*data,intlen);
9494
staticshortpadBufferToInt(StringInfobuffer);
9595

9696
staticJsonbIterator*iteratorFromContainer(JsonContainer*container,JsonbIterator*parent);
@@ -1616,7 +1616,7 @@ reserveFromBuffer(StringInfo buffer, int len)
16161616
* Copy 'len' bytes to a previously reserved area in buffer.
16171617
*/
16181618
staticvoid
1619-
copyToBuffer(StringInfobuffer,intoffset,constchar*data,intlen)
1619+
copyToBuffer(StringInfobuffer,intoffset,constvoid*data,intlen)
16201620
{
16211621
memcpy(buffer->data+offset,data,len);
16221622
}
@@ -1625,7 +1625,7 @@ copyToBuffer(StringInfo buffer, int offset, const char *data, int len)
16251625
* A shorthand for reserveFromBuffer + copyToBuffer.
16261626
*/
16271627
void
1628-
appendToBuffer(StringInfobuffer,constchar*data,intlen)
1628+
appendToBuffer(StringInfobuffer,constvoid*data,intlen)
16291629
{
16301630
intoffset;
16311631

‎src/include/utils/jsonb.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ extern void JsonbHashScalarValueExtended(const JsonbValue *scalarVal,
400400
uint64*hash,uint64seed);
401401

402402
externintreserveFromBuffer(StringInfobuffer,intlen);
403-
externvoidappendToBuffer(StringInfobuffer,constchar*data,intlen);
403+
externvoidappendToBuffer(StringInfobuffer,constvoid*data,intlen);
404404

405405

406406
#endif/* __JSONB_H__ */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp