Declare all configuration variables in optlist.h. Include that
instead of declaring them all over the place. This uncovered type errors: (s_p_etu, adj_update): Defined long, sometimes declared int. Kills big endian machines where sizeof(long) != sizeof(int). Change to int. (set_option, delete_option, optstrset, intset, floatset, doubleset, longset, optionset, optiondel, worldxset): Change linkage to static.
This commit is contained in:
parent
80aae5b8e6
commit
8cd0160176
62 changed files with 143 additions and 258 deletions
|
@ -49,6 +49,7 @@
|
|||
#include <unistd.h>
|
||||
#endif
|
||||
#include "commands.h"
|
||||
#include "optlist.h"
|
||||
|
||||
#if 0
|
||||
static int fileselect(struct dirent *dp);
|
||||
|
@ -92,7 +93,6 @@ strnccmp(s_char *s1, s_char *s2, int n)
|
|||
int
|
||||
info(void)
|
||||
{
|
||||
extern s_char *infodir;
|
||||
s_char buf[255];
|
||||
FILE *fp;
|
||||
s_char *bp;
|
||||
|
@ -272,7 +272,6 @@ printdir(void)
|
|||
int
|
||||
apro(void)
|
||||
{
|
||||
extern s_char *infodir;
|
||||
FILE *fp;
|
||||
s_char *bp, *lbp;
|
||||
s_char *fbuf;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue