Bug#932382: manpages-dev: getutline(3): missing #include in example program

2019-07-20 Thread Michael Kerrisk (man-pages)
tags 932382 fixed-upstream
thanks

On 7/18/19 5:19 PM, Thorsten Glaser wrote:
> Package: manpages-dev
> Version: 5.01-1
> Severity: minor
> 
> I was just trying to compile the example program from the
> .Sh EXAMPLE
> of the getutline(3) manpage and saw this:
> 
> tglase@tglase:~ $ gcc x.c
> x.c: In function ‘main’:
> x.c:19:12: warning: implicit declaration of function ‘time’; did you mean 
> ‘utimes’? [-Wimplicit-function-declaration]
> time(&entry.ut_time);
> ^~~~
> utimes
> 
> Please fix that, to be a good example ☻
Upstream maintainer here. Fixed for the upcoming 5.02
release. Thanks for the report!

Cheers,

Michael

-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/



Bug#932382: manpages-dev: getutline(3): missing #include in example program

2019-07-18 Thread Thorsten Glaser
Package: manpages-dev
Version: 5.01-1
Severity: minor

I was just trying to compile the example program from the
.Sh EXAMPLE
of the getutline(3) manpage and saw this:

tglase@tglase:~ $ gcc x.c
x.c: In function ‘main’:
x.c:19:12: warning: implicit declaration of function ‘time’; did you mean 
‘utimes’? [-Wimplicit-function-declaration]
time(&entry.ut_time);
^~~~
utimes

Please fix that, to be a good example ☻

-- System Information:
Debian Release: bullseye/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'buildd-unstable'), (500, 'unstable'), 
(100, 'experimental')
Architecture: x32 (x86_64)
Foreign Architectures: i386, amd64

Kernel: Linux 4.19.0-5-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=C (charmap=UTF-8)
Shell: /bin/sh linked to /bin/lksh
Init: sysvinit (via /sbin/init)

Versions of packages manpages-dev depends on:
ii  manpages  5.01-1

manpages-dev recommends no packages.

Versions of packages manpages-dev suggests:
ii  man-db [man-browser]  2.8.5-2

-- no debconf information