OSDN Git Service

Move get_line() header to pending.h because posix has FILE * versions.
authorRob Landley <rob@landley.net>
Thu, 24 Dec 2015 18:18:10 +0000 (12:18 -0600)
committerRob Landley <rob@landley.net>
Thu, 24 Dec 2015 18:18:10 +0000 (12:18 -0600)
lib/lib.h
lib/pending.h

index b0d7f36..19992b9 100644 (file)
--- a/lib/lib.h
+++ b/lib/lib.h
@@ -180,8 +180,6 @@ off_t fdlength(int fd);
 void loopfiles_rw(char **argv, int flags, int permissions, int failok,
   void (*function)(int fd, char *name));
 void loopfiles(char **argv, void (*function)(int fd, char *name));
-char *get_rawline(int fd, long *plen, char end);
-char *get_line(int fd);
 void xsendfile(int in, int out);
 int wfchmodat(int rc, char *name, mode_t mode);
 int copy_tempfile(int fdin, char *name, char **tempname);
index ffbd025..fbcc47c 100644 (file)
@@ -5,4 +5,10 @@
 int read_password(char * buff, int buflen, char* mesg);
 int update_password(char *filename, char* username, char* encrypted);
 
+// lib.c
+// These should be switched to posix-2008 getline() and getdelim()
+char *get_rawline(int fd, long *plen, char end);
+char *get_line(int fd);
+
+
 // TODO this goes away when lib/password.c cleaned up