Rename get_stack_driver_path() into stack_driver_path() to follow BeOS naming policy
about functions directly returning the value. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8739 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -29,7 +29,7 @@ struct beosr5_sockaddr_in {
|
|||||||
char sin_zero[4];
|
char sin_zero[4];
|
||||||
};
|
};
|
||||||
|
|
||||||
static char * get_stack_driver_path(void);
|
static char * stack_driver_path(void);
|
||||||
static void convert_from_beos_r5_sockaddr(struct sockaddr *to, const struct sockaddr *from);
|
static void convert_from_beos_r5_sockaddr(struct sockaddr *to, const struct sockaddr *from);
|
||||||
static void convert_to_beos_r5_sockaddr(struct sockaddr *to, const struct sockaddr *from);
|
static void convert_to_beos_r5_sockaddr(struct sockaddr *to, const struct sockaddr *from);
|
||||||
static void convert_from_beos_r5_sockopt(int *level, int *optnum);
|
static void convert_from_beos_r5_sockopt(int *level, int *optnum);
|
||||||
@@ -41,7 +41,7 @@ _EXPORT int socket(int family, int type, int protocol)
|
|||||||
int rv;
|
int rv;
|
||||||
struct stack_driver_args args;
|
struct stack_driver_args args;
|
||||||
|
|
||||||
sock = open(get_stack_driver_path(), O_RDWR);
|
sock = open(stack_driver_path(), O_RDWR);
|
||||||
if (sock < 0)
|
if (sock < 0)
|
||||||
return sock;
|
return sock;
|
||||||
|
|
||||||
@@ -172,7 +172,7 @@ _EXPORT int accept(int sock, struct sockaddr *addr, int *addrlen)
|
|||||||
int new_sock;
|
int new_sock;
|
||||||
void *cookie;
|
void *cookie;
|
||||||
|
|
||||||
new_sock = open(get_stack_driver_path(), O_RDWR);
|
new_sock = open(stack_driver_path(), O_RDWR);
|
||||||
if (new_sock < 0)
|
if (new_sock < 0)
|
||||||
return new_sock;
|
return new_sock;
|
||||||
|
|
||||||
@@ -444,7 +444,7 @@ _EXPORT int sysctl (int *name, uint namelen, void *oldp, size_t *oldlenp,
|
|||||||
* ----------------
|
* ----------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static char * get_stack_driver_path(void) {
|
static char * stack_driver_path(void) {
|
||||||
char * path;
|
char * path;
|
||||||
|
|
||||||
// user-defined stack driver path?
|
// user-defined stack driver path?
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
// Forward declaration of sysctl.h, because it's currently declared under headers/private/kernel/sysctl.h
|
// Forward declaration of sysctl.h, because it's currently declared under headers/private/kernel/sysctl.h
|
||||||
int sysctl(int *, uint, void *, size_t *, void *, size_t);
|
int sysctl(int *, uint, void *, size_t *, void *, size_t);
|
||||||
|
|
||||||
static char * get_stack_driver_path(void);
|
static char * stack_driver_path(void);
|
||||||
|
|
||||||
|
|
||||||
_EXPORT int socket(int family, int type, int protocol)
|
_EXPORT int socket(int family, int type, int protocol)
|
||||||
@@ -29,7 +29,7 @@ _EXPORT int socket(int family, int type, int protocol)
|
|||||||
int rv;
|
int rv;
|
||||||
struct stack_driver_args args;
|
struct stack_driver_args args;
|
||||||
|
|
||||||
sock = open(get_stack_driver_path(), O_RDWR);
|
sock = open(stack_driver_path(), O_RDWR);
|
||||||
if (sock < 0)
|
if (sock < 0)
|
||||||
return sock;
|
return sock;
|
||||||
|
|
||||||
@@ -96,7 +96,7 @@ _EXPORT int accept(int sock, struct sockaddr *addr, int *addrlen)
|
|||||||
int new_sock;
|
int new_sock;
|
||||||
void *cookie;
|
void *cookie;
|
||||||
|
|
||||||
new_sock = open(get_stack_driver_path(), O_RDWR);
|
new_sock = open(stack_driver_path(), O_RDWR);
|
||||||
if (new_sock < 0)
|
if (new_sock < 0)
|
||||||
return new_sock;
|
return new_sock;
|
||||||
|
|
||||||
@@ -317,7 +317,7 @@ _EXPORT int sysctl (int *name, uint namelen, void *oldp, size_t *oldlenp,
|
|||||||
* ----------------
|
* ----------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static char * get_stack_driver_path(void) {
|
static char * stack_driver_path(void) {
|
||||||
char * path;
|
char * path;
|
||||||
|
|
||||||
// user-defined stack driver path?
|
// user-defined stack driver path?
|
||||||
|
|||||||
Reference in New Issue
Block a user