mirror of
https://github.com/falk-werner/webfuse-provider
synced 2024-10-27 20:44:10 +00:00
15 lines
253 B
C
15 lines
253 B
C
|
#include "wsfs/status.h"
|
||
|
|
||
|
#include <errno.h>
|
||
|
|
||
|
int wsfs_status_to_rc(wsfs_status status)
|
||
|
{
|
||
|
switch(status)
|
||
|
{
|
||
|
case WSFS_GOOD: return 0;
|
||
|
case WSFS_BAD_NOENTRY: return -ENOENT;
|
||
|
case WSFS_BAD_NOACCESS: return -EACCES;
|
||
|
default: return -ENOENT;
|
||
|
}
|
||
|
}
|