Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
28346c1c
Commit
28346c1c
authored
21 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Use array for distlists rather than multiple macros.
parent
75497cc8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/sbbs3/install/sbbsdist.lst
+2
-1
2 additions, 1 deletion
src/sbbs3/install/sbbsdist.lst
src/sbbs3/install/sbbsinst.c
+22
-31
22 additions, 31 deletions
src/sbbs3/install/sbbsinst.c
with
24 additions
and
32 deletions
src/sbbs3/install/sbbsdist.lst
+
2
−
1
View file @
28346c1c
...
...
@@ -39,7 +39,8 @@ s ftp://ftp.synchro.net/ Official FTP server (T1)
s ftp://vert.synchro.net/ Vertrauen FTP server (256kbps)
s ftp://rob.synchro.net/ Vertrauen FTP server (256kbps)
s ftp://cvs.synchro.net/ Vertrauen FTP server (256kbps)
s ftp://freebsd.synchro.net/Synchronet/ Deuce's FTP server (128kbps)
s ftp://freebsd.synchro.net/Synchronet/ Deuce's FTP server (128kbps)
s http://freebsd.synchro.net:2327/synchronet/ Deuce's FTP server (128kbps)
C Version 3.10L beta from CVS (stable)
t sbbs310L
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/install/sbbsinst.c
+
22
−
31
View file @
28346c1c
...
...
@@ -49,11 +49,6 @@
/* Definitions */
/***************/
#define DEFAULT_CVSROOT ":pserver:anonymous@cvs.synchro.net:/cvsroot/sbbs"
#define DIST_LIST_URL1 "http://www.synchro.net/sbbsdist.lst"
#define DIST_LIST_URL2 "http://rob.synchro.net/sbbsdist.lst"
#define DIST_LIST_URL3 "http://cvs.synchro.net/sbbsdist.lst"
#define DIST_LIST_URL4 "http://bbs.synchro.net/sbbsdist.lst"
#define DIST_LIST_URL5 "http://freebsd.synchro.net/sbbsdist.lst"
#define DEFAULT_DISTFILE "sbbs_src.tgz"
#define DEFAULT_LIBFILE "lib-%s.tgz"
/* MUST HAVE ONE %s for system type (os-machine or just os) */
#define DEFAULT_SYSTYPE "unix"
/* If no other system type available, use this one */
...
...
@@ -68,6 +63,15 @@
#define MAKE "gmake"
#endif
char
*
distlists
[]
=
{
"http://www.synchro.net/sbbsdist.lst"
,
"http://rob.synchro.net/sbbsdist.lst"
,
"http://cvs.synchro.net/sbbsdist.lst"
,
"http://bbs.synchro.net/sbbsdist.lst"
,
"http://freebsd.synchro.net/sbbsdist.lst"
,
NULL
/* terminator */
};
/*******************/
/* DistList Format */
/*******************/
...
...
@@ -658,12 +662,9 @@ get_distlist(void)
int
list
=-
1
;
char
sep
[
2
]
=
{
'\t'
,
0
};
char
str
[
1024
];
char
error1
[
128
];
char
error2
[
128
];
char
error3
[
128
];
char
error4
[
128
];
char
error5
[
128
];
char
errors
[
sizeof
(
distlists
)
/
sizeof
(
char
*
)][
128
];
memset
(
errors
,
0
,
sizeof
(
errors
));
if
((
dist
=
(
dist_t
**
)
MALLOC
(
sizeof
(
void
*
)
*
MAX_DISTRIBUTIONS
))
==
NULL
)
allocfail
(
sizeof
(
void
*
)
*
MAX_DISTRIBUTIONS
);
for
(
i
=
0
;
i
<
MAX_DISTRIBUTIONS
;
i
++
)
...
...
@@ -698,29 +699,19 @@ get_distlist(void)
if
(
http_distlist
)
{
uifc
.
pop
(
"Getting distributions"
);
if
((
list
=
http_get_fd
(
DIST_LIST_URL1
,
NULL
,
error1
))
<
0
&&
(
list
=
http_get_fd
(
DIST_LIST_URL2
,
NULL
,
error2
))
<
0
&&
(
list
=
http_get_fd
(
DIST_LIST_URL3
,
NULL
,
error3
))
<
0
&&
(
list
=
http_get_fd
(
DIST_LIST_URL4
,
NULL
,
error4
))
<
0
&&
(
list
=
http_get_fd
(
DIST_LIST_URL5
,
NULL
,
error5
))
<
0
&&
r
==
0
)
{
uifc
.
pop
(
NULL
);
uifc
.
bail
();
printf
(
"Cannot get distribution list!
\n
"
"%s
\n
- %s
\n
"
"%s
\n
- %s
\n
"
"%s
\n
- %s
\n
"
"%s
\n
- %s
\n
"
"%s
\n
- %s
\n
"
,
DIST_LIST_URL1
,
error1
,
DIST_LIST_URL2
,
error2
,
DIST_LIST_URL3
,
error3
,
DIST_LIST_URL4
,
error4
,
DIST_LIST_URL5
,
error5
);
exit
(
EXIT_FAILURE
);
for
(
i
=
0
;
distlists
[
i
]
!=
NULL
;
i
++
)
{
if
(
http_get_fd
(
distlists
[
i
],
NULL
,
errors
[
i
])
>=
0
)
break
;
}
}
uifc
.
pop
(
NULL
);
if
(
list
<
0
)
{
uifc
.
bail
();
printf
(
"Cannot get distribution list!
\n
"
);
for
(
i
=
0
;
distlists
[
i
]
!=
NULL
;
i
++
)
printf
(
"%s
\n
- %s
\n
"
,
distlists
[
i
],
errors
[
i
]);
exit
(
EXIT_FAILURE
);
}
while
(
list
>=
0
&&
(
sockreadline
(
list
,
in_line
,
sizeof
(
in_line
),
NULL
)
>=
0
))
{
i
=
strlen
(
in_line
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment