Import patches from pkgsrc
* Adjust paths to modern conventions. * Avoid opening /dev/console. * Consistently provide lowercase and MixedCase options. * Don't abuse an int as a pointer (optarg). * Fix compilation errors on NetBSD and DragonFly BSD. * Fix documentation. * Import headers and remove redundant declarations. Signed-off-by: Masanori Ogino <mogino@acm.org>
This commit is contained in:
parent
b9687d1b88
commit
381c676eda
26 changed files with 143 additions and 98 deletions
|
|
@ -35,7 +35,7 @@
|
|||
|
||||
|
||||
|
||||
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
#include <locale.h>
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
|
||||
|
||||
|
||||
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
|
||||
|
||||
|
||||
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <locale.h>
|
||||
#include <ctype.h>
|
||||
|
|
@ -108,9 +108,8 @@ sjset_code()
|
|||
|
||||
getsjrc ()
|
||||
{
|
||||
FILE *fd, *fopen();
|
||||
FILE *fd;
|
||||
register char *p;
|
||||
char *getenv();
|
||||
|
||||
sjset_code();
|
||||
RCfile[0] = '\0';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue