(new): Switch permissions to standard defines instead of magic numbers
to improve portability.
This commit is contained in:
parent
856dcb7c5c
commit
e60f653d2d
1 changed files with 3 additions and 1 deletions
|
@ -37,6 +37,7 @@
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
#endif
|
#endif
|
||||||
|
#include <sys/stat.h>
|
||||||
#if !defined(_WIN32)
|
#if !defined(_WIN32)
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -152,7 +153,8 @@ new(void)
|
||||||
natp->nat_level[NAT_TLEV] = start_technology;
|
natp->nat_level[NAT_TLEV] = start_technology;
|
||||||
natp->nat_level[NAT_ELEV] = start_education;
|
natp->nat_level[NAT_ELEV] = start_education;
|
||||||
natp->nat_tgms = 0;
|
natp->nat_tgms = 0;
|
||||||
(void)close(open(mailbox(buf, num), O_RDWR | O_TRUNC | O_CREAT, 0660));
|
(void)close(open(mailbox(buf, num), O_RDWR | O_TRUNC | O_CREAT,
|
||||||
|
S_IRWUG));
|
||||||
init_sanct(natp, x, y);
|
init_sanct(natp, x, y);
|
||||||
init_sanct(natp, x + 2, y);
|
init_sanct(natp, x + 2, y);
|
||||||
putnat(natp);
|
putnat(natp);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue