Make parameters const, its not altered inside.
authorWilfried Goesgens <dothebart@citadel.org>
Tue, 13 Sep 2011 15:58:04 +0000 (15:58 +0000)
committerWilfried Goesgens <dothebart@citadel.org>
Tue, 13 Sep 2011 15:58:04 +0000 (15:58 +0000)
citadel/file_ops.c
citadel/file_ops.h

index 3bb6da1d8fc9962ec5048c94a334e0fd3d66c472..4ec3f8e5149029531728344a191f7f38b80c6105 100644 (file)
@@ -49,7 +49,7 @@
  * network_talking_to()  --  concurrency checker
  */
 static char *nttlist = NULL;
-int network_talking_to(char *nodename, int operation) {
+int network_talking_to(const char *nodename, int operation) {
 
        char *ptr = NULL;
        int i;
index 125c5a6beaa642da1130350b2ef8e76e3a0322a5..03c3dc7ed8647139398d44dd23ad80b3ca6fbee2 100644 (file)
@@ -6,7 +6,7 @@
 void OpenCmdResult (char *, const char *);
 void abort_upl (CitContext *who);
 
-int network_talking_to(char *nodename, int operation);
+int network_talking_to(const char *nodename, int operation);
 
 /*
  * Operations that can be performed by network_talking_to()