Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/converters/btoa/files/patch-btoa.c
16461 views
1
--- btoa.c.orig Fri Oct 8 13:00:00 1993
2
+++ btoa.c Wed May 8 14:54:17 2002
3
@@ -20,7 +20,7 @@
4
FILE *outfile;
5
6
7
-void main(argc, argv)
8
+int main(argc, argv)
9
int argc;
10
BYTE **argv;
11
{
12
@@ -39,6 +39,11 @@
13
error = openinput = openoutput = a_to_b = diagnosis = repair = FALSE;
14
new_version = TRUE;
15
infilename = NULL;
16
+
17
+ /* Assume a_to_b = TRUE if we're called 'atob' */
18
+ if (!strncmp(argv[0] + strlen(argv[0]) - 4, "atob", 4)) {
19
+ a_to_b = TRUE;
20
+ }
21
22
/* Scan for '-' options. The rest must be file names. */
23
while (!error && argc > 1 && *argv[1] == '-')
24
25