chiark / gitweb /
Source code reorganization:
[disorder] / lib / base64.c
index d7941828380ac4ff9f4b8b0171a695532264644c..297533363b1ef92921abe03a0c9d663f4e66d5b6 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * This file is part of DisOrder
- * Copyright (C) 2005, 2007 Richard Kettlewell
+ * Copyright (C) 2005, 2007, 2008 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
  * @brief Support for MIME base64
  */
 
-#include <config.h>
-#include "types.h"
-
-#include <string.h>
-
-#include <stdio.h>
+#include "common.h"
 
 #include "mem.h"
 #include "base64.h"
@@ -38,7 +33,6 @@ static const char mime_base64_table[] =
 /** @brief Convert MIME base64
  * @param s base64 data
  * @param nsp Where to store length of converted data
- * @param table Table of characters to use
  * @return Decoded data
  *
  * See <a href="http://tools.ietf.org/html/rfc2045#section-6.8">RFC
@@ -51,6 +45,7 @@ char *mime_base64(const char *s, size_t *nsp) {
 /** @brief Convert base64
  * @param s base64 data
  * @param nsp Where to store length of converted data
+ * @param table Table of characters to use
  * @return Decoded data
  *
  * @p table should consist of 65 characters.  The first 64 will be used to