FreeBSD Bugzilla – Attachment 231114 Details for
Bug 261226
sysutils/bareos-server: compiler error: undefined reference to json_object
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for core/src/dird/catreq.cc eliminates a write-only variable named size
patch-core_src_dird_catreq.cc (text/plain), 1.05 KB, created by
Trond Endrestøl
on 2022-01-18 09:47:58 UTC
(
hide
)
Description:
Patch for core/src/dird/catreq.cc eliminates a write-only variable named size
Filename:
MIME Type:
Creator:
Trond Endrestøl
Created:
2022-01-18 09:47:58 UTC
Size:
1.05 KB
patch
obsolete
>--- core/src/dird/catreq.cc.orig 2021-12-21 11:00:49 UTC >+++ core/src/dird/catreq.cc >@@ -656,7 +656,7 @@ bool DespoolAttributesFromFile(JobControlRecord* jcr, > bool retval = false; > int32_t pktsiz; > size_t nbytes; >- ssize_t size = 0; >+ //ssize_t size = 0; // sysutils/bareos-server/work/bareos-Release-21.0.0/core/src/dird/catreq.cc:659:11: error: variable 'size' set but not used [-Werror,-Wunused-but-set-variable] > int32_t message_length; /* message length */ > int spool_fd = -1; > POOLMEM* msg = GetPoolMemory(PM_MESSAGE); >@@ -680,7 +680,7 @@ bool DespoolAttributesFromFile(JobControlRecord* jcr, > > while ((nbytes = read(spool_fd, (char*)&pktsiz, sizeof(int32_t))) > == sizeof(int32_t)) { >- size += sizeof(int32_t); >+ //size += sizeof(int32_t); > message_length = ntohl(pktsiz); > > if (message_length > 0) { >@@ -697,7 +697,7 @@ bool DespoolAttributesFromFile(JobControlRecord* jcr, > goto bail_out; > } > msg[nbytes] = '\0'; >- size += nbytes; >+ //size += nbytes; > } > > if (!jcr->IsJobCanceled()) {
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 261226
: 231114