projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cosmetic changes.
[mmh]
/
sbr
/
showfile.c
diff --git
a/sbr/showfile.c
b/sbr/showfile.c
index
c0d3608
..
594b269
100644
(file)
--- a/
sbr/showfile.c
+++ b/
sbr/showfile.c
@@
-24,10
+24,10
@@
showfile(char **arg, char *file)
** then really invoked the mhlproc instead
** (which is usually mhl anyway).
*/
** then really invoked the mhlproc instead
** (which is usually mhl anyway).
*/
- if (!strcmp(r1bindex(lproc, '/'), "mhl"))
+ if (strcmp(mhbasename(lproc), "mhl")==0)
lproc = mhlproc;
lproc = mhlproc;
- switch (pid = vfork()) {
+ switch (pid = fork()) {
case -1:
/* fork error */
advise("fork", "unable to");
case -1:
/* fork error */
advise("fork", "unable to");
@@
-36,7
+36,7
@@
showfile(char **arg, char *file)
case 0:
/* child */
vecp = 0;
case 0:
/* child */
vecp = 0;
- vec[vecp++] = r1bindex(lproc, '/');
+ vec[vecp++] = mhbasename(lproc);
isdraft = 1;
if (arg) {
while (*arg) {
isdraft = 1;
if (arg) {
while (*arg) {
@@
-46,7
+46,7
@@
showfile(char **arg, char *file)
}
}
if (isdraft) {
}
}
if (isdraft) {
- if (!strcmp(vec[0], "show"))
+ if (strcmp(vec[0], "show")==0)
vec[vecp++] = "-file";
vec[vecp++] = file;
}
vec[vecp++] = "-file";
vec[vecp++] = file;
}