mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-06 07:21:36 +08:00
BasicFileServerBackend typo fix
This commit is contained in:
@@ -48,7 +48,7 @@ uavcan_linux::NodePtr initNode(const std::vector<std::string>& ifaces, uavcan::N
|
|||||||
|
|
||||||
void runForever(const uavcan_linux::NodePtr& node)
|
void runForever(const uavcan_linux::NodePtr& node)
|
||||||
{
|
{
|
||||||
uavcan_posix::BasicFileSeverBackend backend(*node);
|
uavcan_posix::BasicFileServerBackend backend(*node);
|
||||||
|
|
||||||
uavcan::FileServer server(*node, backend);
|
uavcan::FileServer server(*node, backend);
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ namespace uavcan_posix
|
|||||||
/**
|
/**
|
||||||
* This interface implements a POSIX compliant IFileServerBackend interface
|
* This interface implements a POSIX compliant IFileServerBackend interface
|
||||||
*/
|
*/
|
||||||
class BasicFileSeverBackend : public uavcan::IFileServerBackend
|
class BasicFileServerBackend : public uavcan::IFileServerBackend
|
||||||
{
|
{
|
||||||
enum { FilePermissions = 438 }; ///< 0o666
|
enum { FilePermissions = 438 }; ///< 0o666
|
||||||
|
|
||||||
@@ -433,12 +433,12 @@ protected:
|
|||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
BasicFileSeverBackend(uavcan::INode& node) :
|
BasicFileServerBackend(uavcan::INode& node) :
|
||||||
fdcache_(NULL),
|
fdcache_(NULL),
|
||||||
node_(node)
|
node_(node)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
~BasicFileSeverBackend()
|
~BasicFileServerBackend()
|
||||||
{
|
{
|
||||||
if (fdcache_ != &fallback_)
|
if (fdcache_ != &fallback_)
|
||||||
{
|
{
|
||||||
@@ -447,6 +447,14 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if __GNUC__
|
||||||
|
/// Typo fix in a backwards-compatible way (only for GCC projects). Will be removed someday.
|
||||||
|
typedef BasicFileServerBackend
|
||||||
|
BasicFileSeverBackend // Missing 'r'
|
||||||
|
__attribute__((deprecated));
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // Include guard
|
#endif // Include guard
|
||||||
|
|||||||
Reference in New Issue
Block a user