Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Set graph_create arguments explicitly to void.
  • Loading branch information
samwgoldman committed Jun 21, 2011
1 parent e15efbe commit b85a27a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion graph.c
Expand Up @@ -24,7 +24,7 @@ void vertex_free(void *data) {
free(vertex);
}

Graph *graph_create() {
Graph *graph_create(void) {
Graph *graph = malloc(sizeof(Graph));
graph->vertices = list_create(vertex_free);
graph->count = 0;
Expand Down
2 changes: 1 addition & 1 deletion graph.h
Expand Up @@ -23,7 +23,7 @@ typedef struct Graph {
int count;
} Graph;

Graph *graph_create();
Graph *graph_create(void);
Vertex *vertex_create(void *data);
Edge *edge_create(Vertex *vertex, double weight);

Expand Down

0 comments on commit b85a27a

Please sign in to comment.