summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
4dc39c0)
Reported by -Wextra -pedantic.
/*
** static prototypes
*/
/*
** static prototypes
*/
-static int editfile(char **, char **, char *, int);
+static int editfile(char **, char **, char *);
static int sendfile(char **, char *);
static int refile(char **, char *);
static int removefile(char *);
static int sendfile(char **, char *);
static int refile(char **, char *);
static int removefile(char *);
int
main(int argc, char **argv)
{
int
main(int argc, char **argv)
{
char *cp;
char *ed = NULL, *drft = NULL;
char buf[BUFSIZ], prompt[BUFSIZ];
char *cp;
char *ed = NULL, *drft = NULL;
char buf[BUFSIZ], prompt[BUFSIZ];
/* start editing the draft, unless editor is the empty string */
if (*ed) {
/* start editing the draft, unless editor is the empty string */
if (*ed) {
- if (editfile(&ed, NULL, drft, use) <0) {
+ if (editfile(&ed, NULL, drft) <0) {
if (!use) {
unlink(drft);
}
if (!use) {
unlink(drft);
}
/* Call an editor on the draft file */
if (*++argp)
ed = *argp++;
/* Call an editor on the draft file */
if (*++argp)
ed = *argp++;
- editfile(&ed, argp, drft, NOUSE);
+ editfile(&ed, argp, drft);
-editfile(char **ed, char **arg, char *file, int use)
+editfile(char **ed, char **arg, char *file)
{
int pid, status, vecp;
char *cp, *vec[MAXARGS];
{
int pid, status, vecp;
char *cp, *vec[MAXARGS];