Skip to content

Commit cd6a134

Browse files
committed
Refining code from rabbit suggestions
1 parent b048f85 commit cd6a134

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/c_common/e_report.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ pgr_global_report(char**, char**, char**);
9393
* ~~~~
9494
*/
9595
void
96-
pgr_print_notice(char*);
96+
pgr_print_notice(const char*);
9797

9898
/* @brief throws postgres error when first string is not null */
9999
void pgr_throw_error(const char*, const char*);

src/common/e_report.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pgr_throw_error(const char *err, const char *hint) {
4444
* @param[in] msg string to send notice to PostgreSQL
4545
*/
4646
void
47-
pgr_print_notice(char* msg) {
47+
pgr_print_notice(const char* msg) {
4848
ereport(NOTICE, (errmsg_internal("%s", msg)));
4949
}
5050

0 commit comments

Comments
 (0)