mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 13:22:48 +00:00
Clean up compilation warning.
This commit is contained in:
parent
881f591647
commit
abdd03a364
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=10180
@ -42,9 +42,9 @@ malloc(nbytes, junk1, junk2) /* junk? not used */
|
||||
{
|
||||
unsigned char *p = storage;
|
||||
storage += nbytes;
|
||||
if (storage >= 0xa0000) {
|
||||
if (storage >= (unsigned char *) 0xa0000) {
|
||||
putstr("warning: malloc wrapped\n\r");
|
||||
p = (unsigned char *)0x50000;
|
||||
p = (unsigned char *) 0x50000;
|
||||
storage = p + nbytes;
|
||||
}
|
||||
return p;
|
||||
|
@ -77,3 +77,4 @@ int get_desc(char *fname, char **name, char **comment,
|
||||
char **desc, long *size, char *tmp_file);
|
||||
int exec_catch_errors(char *prog, char *arg, char *fout);
|
||||
int already_installed(char *name);
|
||||
void install_pkgs_indir(void);
|
||||
|
@ -28,15 +28,6 @@
|
||||
|
||||
extern PKG_info p_inf;
|
||||
|
||||
|
||||
/*
|
||||
* Local prototypes
|
||||
*/
|
||||
|
||||
void install_pkgs_indir(void);
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Functions
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user