mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-29 22:24:07 +08:00
BasicFileServerBackend typo fix
This commit is contained in:
parent
531433a326
commit
62e89b3399
@ -48,7 +48,7 @@ uavcan_linux::NodePtr initNode(const std::vector<std::string>& ifaces, uavcan::N
|
||||
|
||||
void runForever(const uavcan_linux::NodePtr& node)
|
||||
{
|
||||
uavcan_posix::BasicFileSeverBackend backend(*node);
|
||||
uavcan_posix::BasicFileServerBackend backend(*node);
|
||||
|
||||
uavcan::FileServer server(*node, backend);
|
||||
|
||||
|
||||
@ -31,7 +31,7 @@ namespace uavcan_posix
|
||||
/**
|
||||
* This interface implements a POSIX compliant IFileServerBackend interface
|
||||
*/
|
||||
class BasicFileSeverBackend : public uavcan::IFileServerBackend
|
||||
class BasicFileServerBackend : public uavcan::IFileServerBackend
|
||||
{
|
||||
enum { FilePermissions = 438 }; ///< 0o666
|
||||
|
||||
@ -433,12 +433,12 @@ protected:
|
||||
}
|
||||
|
||||
public:
|
||||
BasicFileSeverBackend(uavcan::INode& node) :
|
||||
BasicFileServerBackend(uavcan::INode& node) :
|
||||
fdcache_(NULL),
|
||||
node_(node)
|
||||
{ }
|
||||
|
||||
~BasicFileSeverBackend()
|
||||
~BasicFileServerBackend()
|
||||
{
|
||||
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user