Apply OpenBSD's style(9) code formatting

This commit is contained in:
Job Snijders
2019-12-30 05:12:11 +00:00
parent e3974c5469
commit 7d6c4421de
9 changed files with 2828 additions and 2008 deletions

View File

@@ -8,10 +8,16 @@
struct sx_slentry*
sx_slentry_new(char* t)
{
struct sx_slentry* e=malloc(sizeof(struct sx_slentry));
if(!e) return NULL;
memset(e,0,sizeof(struct sx_slentry));
if(t) e->text=strdup(t);
struct sx_slentry* e = malloc(sizeof(struct sx_slentry));
if (!e)
return NULL;
memset(e, 0, sizeof(struct sx_slentry));
if (t)
e->text = strdup(t);
return e;
};
@@ -19,9 +25,12 @@ struct sx_tentry*
sx_tentry_new(char* t)
{
struct sx_tentry* te = malloc(sizeof(struct sx_tentry));
if (!te)
return NULL;
memset(te, 0, sizeof(struct sx_tentry));
te->text = strdup(t);
return te;
};