* Merge another environment with our private copy.
*/
void
-env_merge(char * const envp[], int overwrite)
+env_merge(envp, overwrite)
+ char * const envp[];
+ int overwrite;
{
char * const *ep;
}
static void
-env_update_didvar(const char *ep, unsigned int *didvar)
+env_update_didvar(ep, didvar)
+ const char *ep;
+ unsigned int *didvar;
{
switch (*ep) {
case 'H':
#define cmp_grnam cmp_pwnam
-#define ptr_to_item(p) ((struct cache_item *)((char *)p - offsetof(struct cache_item_##p, p)))
+#ifdef __STDC__
+# define ptr_to_item(p) ((struct cache_item *)((char *)p - offsetof(struct cache_item_##p, p)))
+#else
+# define ptr_to_item(p) ((struct cache_item *)((char *)p - offsetof(struct cache_item_/**/p, p)))
+#endif
/*
* Generic cache element.
#ifdef TIOCGWINSZ
static int
-get_ttysize_ioctl(int *rowp, int *colp)
+get_ttysize_ioctl(rowp, colp)
+ int *rowp;
+ int *colp;
{
struct winsize wsize;
}
#else
static int
-get_ttysize_ioctl(int *rowp, int *colp)
+get_ttysize_ioctl(rowp, colp)
+ int *rowp;
+ int *colp;
{
return -1;
}
#endif /* TIOCGWINSZ */
void
-get_ttysize(int *rowp, int *colp)
+get_ttysize(rowp, colp)
+ int *rowp;
+ int *colp;
{
if (get_ttysize_ioctl(rowp, colp) == -1) {
char *p;