chiark / gitweb /
make store_error const-correct
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Thu, 29 Apr 2010 00:45:01 +0000 (01:45 +0100)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sat, 22 May 2010 12:05:21 +0000 (13:05 +0100)
lib/remopen.c

index dfe08654dec98661287e1aaded6cc31cbf618f35..b0fc64252ef96b0b0fed737aae603e2337579cf5 100644 (file)
@@ -21,7 +21,7 @@
 /*
 ** store an error message in buff like libinn(3) says NNTPconnect does
 */
-static void store_error(char *buff, char *string1, char *string2) {
+static void store_error(char *buff, const char *string1, const char *string2) {
     /* we put these in [...] to make it easier to tell them apart
      * from messages sent by the server */
     snprintf(buff, NNTP_STRLEN, "[%s%s]", string1, string2);