Skip to content

Commit

Permalink
spell "nam" with the "e"; from codespell
Browse files Browse the repository at this point in the history
  • Loading branch information
omar-polo committed Sep 1, 2024
1 parent 2f6e84d commit cd81522
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions parse.y
Original file line number Diff line number Diff line change
Expand Up @@ -1203,12 +1203,12 @@ cmdline_symset(char *s)
}

char *
symget(const char *nam)
symget(const char *name)
{
struct sym *sym;

TAILQ_FOREACH(sym, &symhead, entry) {
if (strcmp(nam, sym->name) == 0) {
if (strcmp(name, sym->name) == 0) {
sym->used = 1;
return sym->val;
}
Expand Down
6 changes: 3 additions & 3 deletions server.c
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,7 @@ client_write(struct bufferevent *bev, void *d)
{
struct client *c = d;
struct evbuffer *out = EVBUFFER_OUTPUT(bev);
char nam[PATH_MAX];
char name[PATH_MAX];
char buf[BUFSIZ];
ssize_t r;

Expand Down Expand Up @@ -1095,11 +1095,11 @@ client_write(struct bufferevent *bev, void *d)
for (c->diroff = 0; c->diroff < c->dirlen; ++c->diroff) {
const char *sufx = "";

encode_path(nam, sizeof(nam),
encode_path(name, sizeof(name),
c->dir[c->diroff]->d_name);
if (c->dir[c->diroff]->d_type == DT_DIR)
sufx = "/";
evbuffer_add_printf(out, "=> ./%s%s\n", nam, sufx);
evbuffer_add_printf(out, "=> ./%s%s\n", name, sufx);
free(c->dir[c->diroff]);
}
free(c->dir);
Expand Down

0 comments on commit cd81522

Please sign in to comment.