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:
Philippe Houdoin
2004-08-31 08:56:18 +00:00
parent f6cd639a4b
commit d72d2ff161
2 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -29,7 +29,7 @@ struct beosr5_sockaddr_in {
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_to_beos_r5_sockaddr(struct sockaddr *to, const struct sockaddr *from);
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;
struct stack_driver_args args;
sock = open(get_stack_driver_path(), O_RDWR);
sock = open(stack_driver_path(), O_RDWR);
if (sock < 0)
return sock;
@@ -172,7 +172,7 @@ _EXPORT int accept(int sock, struct sockaddr *addr, int *addrlen)
int new_sock;
void *cookie;
new_sock = open(get_stack_driver_path(), O_RDWR);
new_sock = open(stack_driver_path(), O_RDWR);
if (new_sock < 0)
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;
// user-defined stack driver path?
+4 -4
View File
@@ -20,7 +20,7 @@
// 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);
static char * get_stack_driver_path(void);
static char * stack_driver_path(void);
_EXPORT int socket(int family, int type, int protocol)
@@ -29,7 +29,7 @@ _EXPORT int socket(int family, int type, int protocol)
int rv;
struct stack_driver_args args;
sock = open(get_stack_driver_path(), O_RDWR);
sock = open(stack_driver_path(), O_RDWR);
if (sock < 0)
return sock;
@@ -96,7 +96,7 @@ _EXPORT int accept(int sock, struct sockaddr *addr, int *addrlen)
int new_sock;
void *cookie;
new_sock = open(get_stack_driver_path(), O_RDWR);
new_sock = open(stack_driver_path(), O_RDWR);
if (new_sock < 0)
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;
// user-defined stack driver path?