@@ -3,11 +3,11 @@ lc_register_callback \- Register a function for callback in config processing. .SH SYNOPSIS .B #include .sp -.BI "int lc_register_callback(const char *" var ", char " opt ", lc_var_type_t " type ", int (*callback)(const char *, const char *, const char *, const char *, lc_flags_t, void *), void *" extra); +.BI "int lc_register_callback(const char *" var ", char " opt ", lc_var_type_t " type ", int (*" callback ")(const char *, const char *, const char *, const char *, lc_flags_t, void *), void *" extra ");" .SH DESCRIPTION The .BR lc_register_callback (3) function registers a function to be called when @@ -154,11 +154,11 @@ Returnning LC_CBRET_ERROR from a callback indicates that the command failed for some reason, the error will be passed back down the chain back to the .BR lc_process (3) call that began processing the configuration data. If LC_CBRET_ERROR is returned from a callback that begins a section, the entire section is ignored. - "RETURN VALUE" +.SH "RETURN VALUE" On success 0 is returned, otherwise -1 is returned. .SH EXAMPLE .nf #include @@ -223,7 +223,6 @@ .SH "SEE ALSO" .BR lc_register_var (3), .BR lc_geterrno (3), .BR lc_geterrstr (3), -.BR lc_process (3), -.BR lc_register_var (3) +.BR lc_process (3)