Skip to content

Commit

Permalink
Nuke a dead variable found with clang and an unused declaration with …
Browse files Browse the repository at this point in the history
…lint.
  • Loading branch information
nicm committed Aug 9, 2009
1 parent 57381aa commit ad18e45
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions environ.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@

RB_GENERATE(environ, environ_entry, entry, environ_cmp);

void environ_set1(struct environ *, char *, char *);

int
environ_cmp(struct environ_entry *envent1, struct environ_entry *envent2)
{
Expand Down
3 changes: 1 addition & 2 deletions procname.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ get_proc_name(int fd, char *tty)
struct stat sb;
size_t len;
struct kinfo_proc *buf, *newbuf;
struct proc *p, *bestp;
struct proc *bestp;
u_int i;
char *name;

Expand Down Expand Up @@ -121,7 +121,6 @@ get_proc_name(int fd, char *tty)
for (i = 0; i < len / sizeof (struct kinfo_proc); i++) {
if (buf[i].kp_eproc.e_tdev != sb.st_rdev)
continue;
p = &buf[i].kp_proc;
if (bestp == NULL)
bestp = &buf[i].kp_proc;
else
Expand Down

0 comments on commit ad18e45

Please sign in to comment.