gcc 3.0 warnings

This commit is contained in:
albert
2002-10-12 04:25:57 +00:00
parent f86b39f44e
commit 81a4a3d281
18 changed files with 60 additions and 61 deletions

View File

@ -211,7 +211,7 @@ static void statm2proc(char* s, proc_t* P) {
/* fprintf(stderr, "statm2proc converted %d fields.\n",num); */
}
static int file2str(char *directory, char *what, char *ret, int cap) {
static int file2str(const char *directory, const char *what, char *ret, int cap) {
static char filename[80];
int fd, num_read;
@ -223,7 +223,7 @@ static int file2str(char *directory, char *what, char *ret, int cap) {
return num_read;
}
static char** file2strvec(char* directory, char* what) {
static char** file2strvec(const char* directory, const char* what) {
char buf[2048]; /* read buf bytes at a time */
char *p, *rbuf = 0, *endbuf, **q, **ret;
int fd, tot = 0, n, c, end_of_file = 0;