Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
- Bacula® is a registered trademark of John Walker.
+ Bacula® is a registered trademark of Kern Sibbald.
The licensor of Bacula is the Free Software Foundation Europe
(FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
Switzerland, email:ftf@fsfeurope.org.
void serial_int64(uint8_t * * const ptr, const int64_t v)
{
- if (htonl(1) == 1L) {
+ if (bigendian()) {
memcpy(*ptr, &v, sizeof(int64_t));
} else {
int i;
void serial_uint64(uint8_t * * const ptr, const uint64_t v)
{
- if (htonl(1) == 1L) {
+ if (bigendian()) {
memcpy(*ptr, &v, sizeof(uint64_t));
} else {
int i;
void serial_btime(uint8_t * * const ptr, const btime_t v)
{
- if (htonl(1) == 1L) {
+ if (bigendian()) {
memcpy(*ptr, &v, sizeof(btime_t));
} else {
int i;
void serial_float64(uint8_t * * const ptr, const float64_t v)
{
- if (htonl(1) == 1L) {
+ if (bigendian()) {
memcpy(*ptr, &v, sizeof(float64_t));
} else {
int i;
{
uint64_t v;
- if (htonl(1) == 1L) {
+ if (bigendian()) {
memcpy(&v, *ptr, sizeof(uint64_t));
} else {
int i;
{
btime_t v;
- if (htonl(1) == 1L) {
+ if (bigendian()) {
memcpy(&v, *ptr, sizeof(btime_t));
} else {
int i;
{
float64_t v;
- if (htonl(1) == 1L) {
+ if (bigendian()) {
memcpy(&v, *ptr, sizeof(float64_t));
} else {
int i;