]> diplodocus.org Git - nmh/blobdiff - uip/post.c
Expand the test of scan's -forma; fails on first attempt.
[nmh] / uip / post.c
index d1e58ebf8e6037053d5e743d0ea0eceeb66a347f..d385219ecd1bd64c883fafc63da22b4307f3d61e 100644 (file)
@@ -305,7 +305,6 @@ static void fcc (char *, char *);
 static void die (char *, char *, ...);
 static void post (char *, int, int, int, char *, int, char *);
 static void do_text (char *file, int fd);
-static int scan_input (int, int *);
 static void do_an_address (struct mailname *, int);
 static void do_addresses (int, int);
 static int find_prefix (void);
@@ -1855,27 +1854,6 @@ do_text (char *file, int fd)
 }
 
 
-/*
- * See if input has any 8-bit bytes.
- */
-static int
-scan_input (int fd, int *eightbit) {
-    int state;
-    char buf[BUFSIZ];
-
-    lseek (fd, (off_t) 0, SEEK_SET);
-
-    while ((state = read (fd, buf, sizeof buf)) > 0) {
-        if (contains8bit (buf, buf + state)) {
-            *eightbit = 1;
-            return OK;
-        }
-    }
-
-    return state == NOTOK  ?  NOTOK  :  OK;
-}
-
-
 /*
  * SIGNAL HANDLING
  */