[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nano-devel] add constant qualifier in do_toggle

From: Eitan Adler
Subject: [Nano-devel] add constant qualifier in do_toggle
Date: Sun, 13 Feb 2011 01:36:08 -0500

For fun I was compiling nano with a C++ compiler instead of a C
compiler. This results in a build error. The following patch fixes it.

Index: nano.c
--- nano.c      (revision 4528)
+++ nano.c      (working copy)
@@ -1340,7 +1340,7 @@
 void do_toggle(int flag)
     bool enabled;
-    char *desc;
+    const char *desc;


Eitan Adler

reply via email to

[Prev in Thread] Current Thread [Next in Thread]