mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Sync OpenBSD patchset 235:
Nuke a dead variable found with clang and an unused declaration with lint.
This commit is contained in:
		@@ -1,4 +1,4 @@
 | 
				
			|||||||
/* $Id: environ.c,v 1.2 2009-08-09 17:52:54 tcunha Exp $ */
 | 
					/* $Id: environ.c,v 1.3 2009-08-09 17:57:39 tcunha Exp $ */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
					 * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
				
			||||||
@@ -29,8 +29,6 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
RB_GENERATE(environ, environ_entry, entry, environ_cmp);
 | 
					RB_GENERATE(environ, environ_entry, entry, environ_cmp);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void	environ_set1(struct environ *, char *, char *);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
int
 | 
					int
 | 
				
			||||||
environ_cmp(struct environ_entry *envent1, struct environ_entry *envent2)
 | 
					environ_cmp(struct environ_entry *envent1, struct environ_entry *envent2)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
/* $Id: osdep-openbsd.c,v 1.18 2009-08-09 16:08:12 tcunha Exp $ */
 | 
					/* $Id: osdep-openbsd.c,v 1.19 2009-08-09 17:57:39 tcunha Exp $ */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
					 * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
				
			||||||
@@ -91,7 +91,7 @@ osdep_get_name(int fd, char *tty)
 | 
				
			|||||||
	struct stat	 sb;
 | 
						struct stat	 sb;
 | 
				
			||||||
	size_t		 len;
 | 
						size_t		 len;
 | 
				
			||||||
	struct kinfo_proc *buf, *newbuf;
 | 
						struct kinfo_proc *buf, *newbuf;
 | 
				
			||||||
	struct proc	*p, *bestp;
 | 
						struct proc	*bestp;
 | 
				
			||||||
	u_int		 i;
 | 
						u_int		 i;
 | 
				
			||||||
	char		*name;
 | 
						char		*name;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -121,7 +121,6 @@ retry:
 | 
				
			|||||||
	for (i = 0; i < len / sizeof (struct kinfo_proc); i++) {
 | 
						for (i = 0; i < len / sizeof (struct kinfo_proc); i++) {
 | 
				
			||||||
		if (buf[i].kp_eproc.e_tdev != sb.st_rdev)
 | 
							if (buf[i].kp_eproc.e_tdev != sb.st_rdev)
 | 
				
			||||||
			continue;
 | 
								continue;
 | 
				
			||||||
		p = &buf[i].kp_proc;
 | 
					 | 
				
			||||||
		if (bestp == NULL)
 | 
							if (bestp == NULL)
 | 
				
			||||||
			bestp = &buf[i].kp_proc;
 | 
								bestp = &buf[i].kp_proc;
 | 
				
			||||||
		else
 | 
							else
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user