[PATCH] Fix compile error with --enable-selftest

Anoop C S anoopcs at cryptolab.net
Wed May 29 06:40:53 UTC 2019


Please find the attached patch which fixes the following error while
compiling with --enable-selftest configure option:

../../source3/utils/smbcontrol.c: In function ‘do_sleep’:
../../source3/utils/smbcontrol.c:435:2: error: ‘input’ undeclared
(first use in this function)
  435 |  input = atol(argv[1]);
      |  ^~~~~
../../source3/utils/smbcontrol.c:435:2: note: each undeclared
identifier is reported only once for each function it appears in
../../source3/utils/smbcontrol.c:436:27: error: ‘MAX_SLEEP’ undeclared
(first use in this function)
  436 |  if (input < 1 || input > MAX_SLEEP) {
      |                           ^~~~~~~~~
../../source3/utils/smbcontrol.c:444:2: error: ‘seconds’ undeclared
(first use in this function); did you mean ‘send’?
  444 |  seconds = input;
      |  ^~~~~~~
      |  send

CI run: https://gitlab.com/samba-team/devel/samba/pipelines/63654943

Reviews are appreciated.

Anoop C S.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-s3-smbcontrol-Replace-with-to-declare-variables-in-d.patch
Type: text/x-patch
Size: 1400 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20190529/d346912c/0001-s3-smbcontrol-Replace-with-to-declare-variables-in-d.bin>

More information about the samba-technical mailing list