Tiny Core Extensions > TCE Talk

Is findshares open source?

<< < (2/14) > >>

Scooby:
I got a lot of warnings about size of int
but otherwise compiled fine and seems to run OK

 ;D

Rich:
Hi Scooby
Glad it worked out for you. Just to satisfy my curiosity, if you get a chance, could you post a few examples of the warnings.

curaga:
findshares.c: In function 'Copy':
findshares.c:265: warning: cast from pointer to integer of different size
findshares.c:271: warning: cast from pointer to integer of different size
findshares.c:273: warning: cast from pointer to integer of different size

Scooby:
In attachement there is a file containing all the compilerwarnings

The first three could I just replace int with long?
(the ones curaga posted)


And the others, do you think they are harmless?
(Actually If i remove compiler optimization flag "-Os"
many of the warnings go away then I only have curagas three
and findshares.c:1055:6: warning: variable 's' set but not used
file size difference is 21K compared to 25K
)

also got an error from another user ( see full output below )

Error line 445

What does that mean? error opening tcp port 445?
To me it seems user got info anyway




--- Code: ---root@alphaos ~]# findshares
findshares version 1.05 Aug 3, 2011
Copyright Richard A. Rost April 23, 2011

Local Host Name  = alphaos
Local IP Address = 192.168.1.59 on wlan0

Error line 445
Samba/Windows Shares
--------------------------------------------------------------------------------
MSHOME
    RT-N66U          192.168.1.2       RT-N66U
   IPC$                           IPC Service (RT-N66U)


    DADS-MAC-MINI    192.168.1.10     

MSHOME
        xxxxx       192.168.1.55      Samba (xxxxx)
   media                          media
   removable_SDCARD               removable_media_SDCARD
   IPC$                           IPC Service (Samba (xxxxx))

--- End code ---

Rich:
Hi Scooby

--- Code: ---Error line 445
--- End code ---
That refers to line 445 in the source code. You will find:

--- Code: ---return(__LINE__)
--- End code ---
throughout the source code. When a strategy fails, the program reports where the failure occurred and move on to the
next machine. In this particular case, it tried to connect to port 445. When that failed, it tried port 139 which also failed, so
it reported the error and resumed scanning. Some machine was blocking access to those ports.

--- Code: ---c:1055:6: warning: variable 's' set but not used
--- End code ---
Harmless. Some variable I stopped using but did not remove the definition.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version