Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 9b4bd35

Browse files
committed
doc: bgw_main takes a Datum argument, not void *.
Per report from James Harper.
1 parent 9a57858 commit 9b4bd35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/src/sgml/bgworker.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
from its <function>_PG_init()</>.
3838
The structure <structname>BackgroundWorker</structname> is defined thus:
3939
<programlisting>
40-
typedef void (*bgworker_main_type)(void *main_arg);
40+
typedef void (*bgworker_main_type)(Datum main_arg);
4141
typedef struct BackgroundWorker
4242
{
4343
char bgw_name[BGW_MAXLEN];
@@ -94,7 +94,7 @@ typedef struct BackgroundWorker
9494
<para>
9595
<structfield>bgw_main</structfield> is a pointer to the function to run when
9696
the process is started. This function must take a single argument of type
97-
<type>void *</> and return <type>void</>.
97+
<type>Datum</> and return <type>void</>.
9898
<structfield>bgw_main_arg</structfield> will be passed to it as its only
9999
argument. Note that the global variable <literal>MyBgworkerEntry</literal>
100100
points to a copy of the <structname>BackgroundWorker</structname> structure

0 commit comments

Comments
 (0)