The Samba-Bugzilla – Attachment 14223 Details for
Bug 13460
Missing extern "C" specifications in libsmbclient.h (c++ issue)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
patch.diff (text/plain), 1.67 KB, created by
Svyatoslav Phirsov
on 2018-06-06 08:46:30 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Svyatoslav Phirsov
Created:
2018-06-06 08:46:30 UTC
Size:
1.67 KB
patch
obsolete
>diff --git a/source3/include/libsmbclient.h b/source3/include/libsmbclient.h >--- a/source3/include/libsmbclient.h >+++ b/source3/include/libsmbclient.h >@@ -2781,9 +2781,6 @@ int smbc_unlink_print_job(const char *purl, int id); > */ > int smbc_remove_unused_server(SMBCCTX * context, SMBCSRV * srv); > >-#ifdef __cplusplus >-} >-#endif > > /**@ingroup directory > * Convert strings of %xx to their single character equivalent. >@@ -2803,15 +2800,8 @@ int smbc_remove_unused_server(SMBCCTX * context, SMBCSRV * srv); > * @return The number of % sequences which could not be converted > * due to lack of two following hexadecimal digits. > */ >-#ifdef __cplusplus >-extern "C" { >-#endif > int > smbc_urldecode(char *dest, char * src, size_t max_dest_len); >-#ifdef __cplusplus >-} >-#endif >- > > /* > * Convert any characters not specifically allowed in a URL into their %xx >@@ -2830,15 +2820,8 @@ smbc_urldecode(char *dest, char * src, size_t max_dest_len); > * > * @returns The remaining buffer length. > */ >-#ifdef __cplusplus >-extern "C" { >-#endif > int > smbc_urlencode(char * dest, char * src, int max_dest_len); >-#ifdef __cplusplus >-} >-#endif >- > > /**@ingroup directory > * Return the version of the linked Samba code, and thus the version of the >@@ -2846,14 +2829,8 @@ smbc_urlencode(char * dest, char * src, int max_dest_len); > * > * @return The version string. > */ >-#ifdef __cplusplus >-extern "C" { >-#endif > const char * > smbc_version(void); >-#ifdef __cplusplus >-} >-#endif > > /**@ingroup misc > * Set the users credentials globally so they can be used for DFS >@@ -3232,4 +3209,9 @@ struct _SMBCCTX > }; > > >+#ifdef __cplusplus >+} >+#endif >+ >+ > #endif /* SMBCLIENT_H_INCLUDED */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 13460
: 14223