alloc_formnode ()
{
struct formnode *fnp;
-
fnp = (struct formnode *) xmalloc (sizeof (struct formnode));
(void) memset (fnp, 0, sizeof (struct formnode));
fnp -> sibling = formtree;
filename = tilde_expand (*argv);
make_cleanup (free, filename);
- if ((fp = fopen (filename, "r")) == NULL)
+ if ((fp = fopen (filename, FOPEN_RB)) == NULL)
{
perror_with_name (filename);
}
/* Now attempt to create a fresh state file. */
- if ((asfd = sfd_fopen (filename, "w")) == NULL)
+ if ((asfd = sfd_fopen (filename, FOPEN_WB)) == NULL)
{
perror_with_name (filename);
}