mirror of
https://github.com/bgp/bgpq4
synced 2025-02-28 08:53:11 +00:00
KNF & renaming
This commit is contained in:
@@ -31,15 +31,15 @@
|
||||
|
||||
#include "extern.h"
|
||||
|
||||
struct sx_slentry *
|
||||
struct slentry *
|
||||
sx_slentry_new(char *t)
|
||||
{
|
||||
struct sx_slentry *e = malloc(sizeof(struct sx_slentry));
|
||||
struct slentry *e = malloc(sizeof(struct slentry));
|
||||
|
||||
if (!e)
|
||||
return NULL;
|
||||
|
||||
memset(e, 0, sizeof(struct sx_slentry));
|
||||
memset(e, 0, sizeof(struct slentry));
|
||||
|
||||
e->text = strdup(t);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user