Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
bbb99eff
...
bbb99effbfe07b1fd8ac7be9ddf927b803cbe706
authored
2002-05-13 14:42:08 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Added missing includes.
1 parent
fe6fbfdd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
lib/utmp.c
lib/utmp.c
View file @
bbb99ef
...
...
@@ -16,6 +16,8 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include <sys/types.h>
#include <sys/time.h>
#include <utmp.h>
#include <fcntl.h>
#include <unistd.h>
...
...
@@ -27,6 +29,14 @@ static int fd = -1;
static
struct
utmp
ut
;
void
endutent
()
{
if
(
fd
>
0
)
close
(
fd
);
fd
=
-
1
;
}
void
setutent
()
{
endutent
();
...
...
@@ -35,14 +45,6 @@ setutent ()
perror
(
"setutent: Can't open utmp file"
);
}
void
endutent
()
{
if
(
fd
>
0
)
close
(
fd
);
fd
=
-
1
;
}
struct
utmp
*
getutent
()
{
...
...
Please
register
or
sign in
to post a comment