diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2021-12-19 06:27:36 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2021-12-19 06:27:36 +0000 |
commit | d838c7b80a5f7d9df8415483236bf2ec773cbecd (patch) | |
tree | 414edf1605e572b39f7aa0c63314892a7326ac31 /src/include | |
parent | a5e94f3053038184cd0cffd798ca22f779fefb30 (diff) | |
download | utmps-d838c7b80a5f7d9df8415483236bf2ec773cbecd.tar.xz |
Prepare for 0.1.1.0, add utmps-write
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/utmps/utmps.h | 2 | ||||
-rw-r--r-- | src/include/utmps/utmpx.h | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/include/utmps/utmps.h b/src/include/utmps/utmps.h index 9894276..cc60e9d 100644 --- a/src/include/utmps/utmps.h +++ b/src/include/utmps/utmps.h @@ -27,7 +27,7 @@ extern int utmps_getid (utmps *, unsigned short, char const *, struct utmpx *, t extern int utmps_getline (utmps *, char const *, struct utmpx *, tain const *, tain *) ; #define utmps_getline_g(a, line, b, deadline) utmps_getline(a, line, b, (deadline), &STAMP) extern int utmps_putline (utmps *, struct utmpx const *, tain const *, tain *) ; -#define utmps_putline_g(a, entry, deadline) utmps_putline(a, entry, (deadine), &STAMP) +#define utmps_putline_g(a, entry, deadline) utmps_putline(a, entry, (deadline), &STAMP) extern int utmps_updwtmpx (char const *, struct utmpx const *, tain const *, tain *) ; #define utmps_updwtmpx_g(file, b, deadline) utmps_updwtmpx(file, b, (deadline), &STAMP) diff --git a/src/include/utmps/utmpx.h b/src/include/utmps/utmpx.h index 0af2fac..8fa6dd2 100644 --- a/src/include/utmps/utmpx.h +++ b/src/include/utmps/utmpx.h @@ -26,18 +26,18 @@ struct utmpx { short ut_type ; pid_t ut_pid ; - char ut_line[UTMPS_UT_LINESIZE] ; - char ut_id[UTMPS_UT_IDSIZE] ; - char ut_user[UTMPS_UT_NAMESIZE] ; + char ut_line[UTMPS_UT_LINESIZE] __attribute__((nonstring)) ; + char ut_id[UTMPS_UT_IDSIZE] __attribute__((nonstring)) ; + char ut_user[UTMPS_UT_NAMESIZE] __attribute__((nonstring)) ; - char ut_host[UTMPS_UT_HOSTSIZE] ; + char ut_host[UTMPS_UT_HOSTSIZE] __attribute__((nonstring)) ; struct exit_status ut_exit ; pid_t ut_session ; struct timeval ut_tv ; uint32_t ut_addr_v6[4] ; - char _dummy[20] ; + char _dummy[20] __attribute__((nonstring)) ; } ; #define EMPTY 0 |