Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 887947 Details for
Bug 926999
app-pda/usbmuxd-1.1.1 - utils.h: error: redeclaration of enumerator PLIST_FORMAT_XML
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
0004-conf-Fix-false-plist-read-write-errors-caused-by-usi.patch
0004-conf-Fix-false-plist-read-write-errors-caused-by-usi.patch (text/plain), 1.53 KB, created by
Attila Tóth
on 2024-03-19 17:53:52 UTC
(
hide
)
Description:
0004-conf-Fix-false-plist-read-write-errors-caused-by-usi.patch
Filename:
MIME Type:
Creator:
Attila Tóth
Created:
2024-03-19 17:53:52 UTC
Size:
1.53 KB
patch
obsolete
>From: Nikias Bassen <nikias@gmx.li> >Date: Fri, 5 May 2023 23:22:37 +0200 >Subject: conf: Fix false plist read/write errors caused by using new libplist > API > >Thanks to @intelfx for spotting this. >--- > src/conf.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/src/conf.c b/src/conf.c >index 5e682b4..f9fce08 100644 >--- a/src/conf.c >+++ b/src/conf.c >@@ -255,7 +255,7 @@ static int internal_set_value(const char *config_file, const char *key, plist_t > usbmuxd_log(LL_DEBUG, "Setting key %s in config file %s", key, config_file); > } > >- int res = plist_write_to_file(config, config_file, PLIST_FORMAT_XML, 0); >+ int res = (plist_write_to_file(config, config_file, PLIST_FORMAT_XML, 0) == PLIST_ERR_SUCCESS); > > plist_free(config); > >@@ -275,7 +275,7 @@ static int config_set_value(const char *key, plist_t value) > > int result = internal_set_value(config_file, key, value); > if (!result) { >- usbmuxd_log(LL_ERROR, "ERROR: Failed to write to '%s': %s", config_file, strerror(errno)); >+ usbmuxd_log(LL_ERROR, "ERROR: Failed to write to '%s'", config_file); > } > > free(config_file); >@@ -289,7 +289,7 @@ static int internal_get_value(const char* config_file, const char *key, plist_t > > /* now parse file to get the SystemBUID */ > plist_t config = NULL; >- if (plist_read_from_file(config_file, &config, NULL)) { >+ if (plist_read_from_file(config_file, &config, NULL) == PLIST_ERR_SUCCESS) { > usbmuxd_log(LL_DEBUG, "Reading key %s from config file %s", key, config_file); > plist_t n = plist_dict_get_item(config, key); > if (n) {
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 926999
:
887602
|
887603
|
887604
|
887605
|
887606
|
887607
|
887608
|
887609
|
887610
|
887946
| 887947