summaryrefslogtreecommitdiff
path: root/s_linkedlist.c
diff options
context:
space:
mode:
Diffstat (limited to 's_linkedlist.c')
-rw-r--r--s_linkedlist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/s_linkedlist.c b/s_linkedlist.c
index b2f79ad..f9aff1d 100644
--- a/s_linkedlist.c
+++ b/s_linkedlist.c
@@ -13,7 +13,7 @@ struct waster {
struct waster *next;
};
-struct waster *newnode () {
+struct waster *newnode (void) {
struct waster *new = malloc(sizeof(struct waster));
return new;
@@ -49,7 +49,7 @@ void freellist(struct waster *wr1) {
}
}
-int main () {
+int main (void) {
struct waster *wr1 = llist(20);
struct waster *p;