VirtualBox

Changeset 2311 in kBuild


Ignore:
Timestamp:
Mar 2, 2009 12:46:13 AM (16 years ago)
Author:
bird
Message:

kash: darwin build fixes.

Location:
trunk/src/kash
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/main.c

    r2298 r2311  
    238238                };
    239239#define SIGSSIZE (sizeof(sigs)/sizeof(sigs[0]))
    240                 int i;
     240                unsigned i;
    241241
    242242                for (i = 0; i < SIGSSIZE; i++)
     
    435435
    436436STATIC const char *
    437 strip_argv0(const char *argv0, size_t *lenp)
     437strip_argv0(const char *argv0, unsigned *lenp)
    438438{
    439439        const char *tmp;
     
    447447        if (!tmp)
    448448                tmp = strchr(argv0, '\0');
    449         *lenp = tmp - argv0;
     449        *lenp = (unsigned)(tmp - argv0);
    450450        return argv0;
    451451}
     
    454454usage(const char *argv0)
    455455{
    456         size_t len;
     456        unsigned len;
    457457        argv0 = strip_argv0(argv0, &len);
    458458
     
    473473version(const char *argv0)
    474474{
    475         size_t len;
     475        unsigned len;
    476476        strip_argv0(argv0, &len);
    477477
  • trunk/src/kash/mknodes.sh

    r1233 r2311  
    115115echo
    116116echo
    117 echo "union node *copyfunc(union node *);"
    118 echo "void freefunc(union node *);"
     117echo "union node *copyfunc(struct shinstance *, union node *);"
     118echo "void freefunc(struct shinstance *, union node *);"
    119119
    120120exec <$nodes_pat
  • trunk/src/kash/shinstance.c

    r2303 r2311  
    3838# include <pwd.h>
    3939#endif
     40#include "shinstance.h"
     41
    4042#if K_OS == K_OS_WINDOWS
    4143# include <Windows.h>
    42 #endif
    43 #include "shinstance.h"
    44 
    45 #if K_OS == K_OS_WINDOWS
    4644extern pid_t shfork_do_it(shinstance *psh); /* shforkA-win.asm */
    4745#endif
     
    10651063
    10661064    if (!envp)
    1067         envp = sh_environ(psh);
     1065        envp = (const char * const *)sh_environ(psh);
    10681066
    10691067#if defined(SH_FORKED_MODE) && K_OS != K_OS_WINDOWS
  • trunk/src/kash/shtypes.h

    r2298 r2311  
    120120#else
    121121# define SH_NORETURN_1
    122 # define SH_NORETURN_2 __attribute__((__noreturn__));
     122# define SH_NORETURN_2 __attribute__((__noreturn__))
    123123#endif
    124124
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette