chiark / gitweb /
disorder.h: more consistent approach to function attributes
[disorder] / lib / vector.c
index fa8f9e388df6d0c90f157eacc94c7e14d6db4cd7..0d1dd4eb90493d6bc311ef7a73c99d98593e7443 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * This file is part of DisOrder.
- * Copyright (C) 2004, 2007-2009 Richard Kettlewell
+ * Copyright (C) 2004, 2007-2009, 2013 Richard Kettlewell
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -40,7 +40,8 @@ void dynstr_append_bytes(struct dynstr *v, const char *ptr, size_t n) {
 
 /** @brief Free a string list */
 void free_strings(int nvec, char **vec) {
-  for(int n = 0; n < nvec; ++n)
+  int n;
+  for(n = 0; n < nvec; ++n)
     xfree(vec[n]);
   xfree(vec);
 }