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