projects
/
debian
/
cpmtools
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 2.17
[debian/cpmtools]
/
fsed.cpm.c
diff --git
a/fsed.cpm.c
b/fsed.cpm.c
index 5a606cb30b9de76756aea89396059141a02de57d..0c3f03f8ea5a3e418ff195e40d047be0c8a13cfb 100644
(file)
--- a/
fsed.cpm.c
+++ b/
fsed.cpm.c
@@
-166,7
+166,7
@@
int main(int argc, char *argv[]) /*{{{*/
const char *err;
struct cpmSuperBlock drive;
struct cpmInode root;
const char *err;
struct cpmSuperBlock drive;
struct cpmInode root;
- const char *format
=FORMAT
;
+ const char *format;
int c,usage=0;
unsigned long pos;
chtype ch;
int c,usage=0;
unsigned long pos;
chtype ch;
@@
-175,6
+175,7
@@
int main(int argc, char *argv[]) /*{{{*/
/*}}}*/
/* parse options */ /*{{{*/
/*}}}*/
/* parse options */ /*{{{*/
+ if (!(format=getenv("CPMTOOLSFMT"))) format=FORMAT;
while ((c=getopt(argc,argv,"T:f:h?"))!=EOF) switch(c)
{
case 'f': format=optarg; break;
while ((c=getopt(argc,argv,"T:f:h?"))!=EOF) switch(c)
{
case 'f': format=optarg; break;