2007-01-16 00:13:17 +01:00
|
|
|
--- Wnn/jlib.V3/jlv3.c
|
|
|
|
+++ Wnn/jlib.V3/jlv3.c
|
2010-03-26 01:19:40 +01:00
|
|
|
@@ -355,7 +355,7 @@
|
2007-01-16 00:13:17 +01:00
|
|
|
/* READ ONLY SD && hind file is none */
|
|
|
|
(js_access (jl_env (buf), fn, 4) != -1) && (js_access (jl_env (buf), fn1, 4) == -1))
|
|
|
|
{
|
|
|
|
- if ((dic_no = jl_dic_add (buf, fn, fn1, WNN_DIC_ADD_NOR, prio, WNN_DIC_RDONLY, WNN_DIC_RW, NULL, NULL, WNN_CREATE, NULL)) < 0)
|
|
|
|
+ if ((dic_no = jl_dic_add (buf, fn, fn1, WNN_DIC_ADD_NOR, prio, WNN_DIC_RDONLY, WNN_DIC_RW, NULL, NULL, (int (*) (const char *))WNN_CREATE, NULL)) < 0)
|
|
|
|
return (-1);
|
|
|
|
if (jl_dic_delete (buf, dic_no) < 0)
|
|
|
|
return (-1);
|
2010-03-26 01:19:40 +01:00
|
|
|
@@ -365,7 +365,7 @@
|
2007-01-16 00:13:17 +01:00
|
|
|
{
|
|
|
|
rdonly = WNN_DIC_RDONLY;
|
|
|
|
}
|
|
|
|
- if ((dic_no = jl_dic_add (buf, fn, fn1, WNN_DIC_ADD_NOR, prio, rdonly, hrdonly, NULL, NULL, WNN_CREATE, NULL)) < 0)
|
|
|
|
+ if ((dic_no = jl_dic_add (buf, fn, fn1, WNN_DIC_ADD_NOR, prio, rdonly, hrdonly, NULL, NULL, (int (*) (const char *))WNN_CREATE, NULL)) < 0)
|
|
|
|
/* pw_d pw_h err mes */
|
|
|
|
return (-1);
|
|
|
|
if (js_dic_info (jl_env (buf), dic_no, &ret) < 0)
|
2015-09-16 12:20:01 +02:00
|
|
|
--- Wnn/etc/pwd.c
|
|
|
|
+++ Wnn/etc/pwd.c 2015-09-16 10:04:15.545979775 +0000
|
|
|
|
@@ -51,6 +51,10 @@
|
|
|
|
#include "commonhd.h"
|
|
|
|
#include "jslib.h"
|
|
|
|
#include "wnn_os.h"
|
|
|
|
+#else
|
|
|
|
+#include <string.h>
|
|
|
|
+#include <strings.h>
|
|
|
|
+#include <time.h>
|
|
|
|
#endif /* !JS */
|
|
|
|
|
|
|
|
#ifdef JS
|