Subversion Repositories RepoView

Rev

Rev 5 | Rev 11 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5 Rev 10
Line 1... Line 1...
1
/* $Id: util.c 5 2024-08-20 22:43:56Z nishi $ */
1
/* $Id: util.c 10 2024-08-21 02:13:48Z nishi $ */
2
 
2
 
3
#include "rv_util.h"
3
#include "rv_util.h"
4
 
4
 
5
#include "../config.h"
5
#include "../config.h"
6
 
6
 
Line 73... Line 73...
73
		}
73
		}
74
	}
74
	}
75
	return r;
75
	return r;
76
}
76
}
77
 
77
 
-
 
78
char* rv_construct_repouser(const char* reponame, const char* username) {
-
 
79
	char cbuf[2];
-
 
80
	cbuf[0] = REPO_USER_DELIM;
-
 
81
	cbuf[1] = 0;
-
 
82
	return rv_strcat3(reponame, cbuf, username);
-
 
83
}
-
 
84
 
78
char* rv_new_token(const char* username) {
85
char* rv_new_token(const char* username) {
79
	const char tokenstr[] = "0123456789abcdefghijklmnopqrstuvwxyz";
86
	const char tokenstr[] = "0123456789abcdefghijklmnopqrstuvwxyz";
80
	char* token = malloc(17);
87
	char* token = malloc(17);
81
	token[16] = 0;
88
	token[16] = 0;
82
	int i;
89
	int i;