From: Cathryn Mataga <cathryn@junglevision.com>
To: Bernard Pidoux <bernard.pidoux@upmc.fr>
Cc: linux-hams <linux-hams@vger.kernel.org>
Subject: [PATCH] xfbbd: Run the same data files on 64-bit
Date: Fri, 05 Jul 2013 14:20:39 -0700 [thread overview]
Message-ID: <51D738A7.1010505@junglevision.com> (raw)
In-Reply-To: <4CE0313C.3080804@upmc.fr>
[-- Attachment #1: Type: text/plain, Size: 523 bytes --]
I'm moving my ham radio server up to 64-bit Fedora 18. So I'm fixing
issues as I hit them.
This is against fbbsrc.705e. When compiled for 64 bits, the code was
corrupting all my 32-bit data files.
I think this is right, that the binary data files should be the same
between 32 and 64 bit compiles.
After applying this patch, I see my user names and messages correctly
after copying data from my old 32-bit install to a new 64-bit install.
I haven't made any patches in awhile so if anything is wrong let me know.
[-- Attachment #2: fbbsrc.705e.sixtyfour.patch --]
[-- Type: text/plain, Size: 3024 bytes --]
--- /home/cathryn/fbbsrc.705e/include/fbb_serv.h 2013-03-16 10:00:56.000000000 -0400
+++ /home/cathryn/fbbsrc.705e.sixtyfour/include/fbb_serv.h 2013-07-05 16:26:01.814157699 -0400
@@ -31,7 +31,7 @@
#ifndef _fbb_serv
#define _fbb_serv
-
+#define fbb_long int
/* #define FORTIFY */
#ifdef __LINUX__
@@ -655,8 +655,8 @@
uchar free;
uchar changed;
ushort seen;
- long last_modif __a2__;
- long last_seen __a2__;
+ fbb_long last_modif __a2__;
+ fbb_long last_seen __a2__;
char first_homebbs[41];
char secnd_homebbs[41];
char first_zip[9];
@@ -669,7 +669,6 @@
/*
* Structures et blocs de messages
*/
-
typedef struct
{
long nmess;
@@ -733,7 +732,7 @@
char indcnx[6];
uchar port;
uchar voie;
- long datcnx __a2__;
+ fbb_long datcnx __a2__;
short tpscnx;
}
statis;
@@ -767,17 +766,17 @@
indicat indic; /* 8 Callsign */
indicat relai[8]; /* 64 Digis path */
- long lastmes __a2__; /* 4 Last L number */
- long nbcon __a2__; /* 4 Number of connexions */
- long hcon __a2__; /* 4 Last connexion date */
- long lastyap __a2__; /* 4 Last YN date */
+ fbb_long lastmes __a2__; /* 4 Last L number */
+ fbb_long nbcon __a2__; /* 4 Number of connexions */
+ fbb_long hcon __a2__; /* 4 Last connexion date */
+ fbb_long lastyap __a2__; /* 4 Last YN date */
ushort flags; /* 2 Flags */
ushort on_base; /* 2 ON Base number */
uchar nbl; /* 1 Lines paging */
uchar lang; /* 1 Language */
- long newbanner __a2__; /* 4 Last Banner date */
+ fbb_long newbanner __a2__; /* 4 Last Banner date */
ushort download; /* 2 download size (KB) = 100 */
char free[20]; /* 20 Reserved */
char theme; /* 1 Current topic */
@@ -802,7 +801,7 @@
{
char mode;
char fbid[13];
- long numero __a2__;
+ fbb_long numero __a2__;
}
bidfwd;
@@ -850,9 +849,9 @@
{ /* Longueur = 194 octets */
char type;
char status;
- long numero __a2__;
- long taille __a2__;
- long date __a2__;
+ fbb_long numero __a2__;
+ fbb_long taille __a2__;
+ fbb_long date __a2__;
char bbsf[7];
char bbsv[41];
char exped[7];
@@ -861,11 +860,11 @@
char titre[61];
char bin;
char free[5];
- long grpnum __a2__;
+ fbb_long grpnum __a2__;
ushort nblu;
- long theme __a2__;
- long datesd __a2__;
- long datech __a2__;
+ fbb_long theme __a2__;
+ fbb_long datesd __a2__;
+ fbb_long datech __a2__;
char fbbs[NBMASK];
char forw[NBMASK];
}
@@ -921,12 +920,12 @@
double a0 __a2__;
double n0 __a2__;
double q3 __a2__;
- long k0 __a2__;
+ fbb_long k0 __a2__;
double f1 __a2__;
double v1 __a2__;
short pas;
- long maj __a2__;
- long cat __a2__; /* Catalog Number - anciennement vide */
+ fbb_long maj __a2__;
+ fbb_long cat __a2__; /* Catalog Number - anciennement vide */
short libre[4];
}
satel;
@@ -1230,8 +1229,8 @@
char nomfic[LABEL_FIC];
char label[LABEL_NOM];
char owner[LABEL_OWN];
- long index;
- long date_creation;
+ fbb_long index;
+ fbb_long date_creation;
char free[24];
}
Rlabel; /* 160 bytes */
next prev parent reply other threads:[~2013-07-05 21:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-14 18:58 [PATCH] xfbbd: Fix issue with xfbbd and AX25 radio connections Bernard Pidoux
2013-07-05 21:20 ` Cathryn Mataga [this message]
2013-07-06 21:24 ` [PATCH] xfbbd: Run the same data files on 64-bit Pidoux
2013-07-07 0:15 ` Cathryn Mataga
2013-07-16 3:09 ` Cathryn Mataga
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51D738A7.1010505@junglevision.com \
--to=cathryn@junglevision.com \
--cc=bernard.pidoux@upmc.fr \
--cc=linux-hams@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.