Initialise in declarations to avoid assignment in conditions.
Fix bugs in Linux_Misc_Version() spotted during review.

Check for ferror() if fgets() returns NULL.
Don't fclose(NULL); undefined behaviour.
Simpler and more robust EOF-check in TryLLDPDiscovery().