diff options
author | Daniel Lange <DLange@git.local> | 2016-04-11 13:00:27 +0200 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2016-04-11 13:00:27 +0200 |
commit | 283707c5e5bc436b78ea23bf5500cb6b16a01148 (patch) | |
tree | b977131bbbb4c3bd8ade370aab2e4fc913440c04 /SignalItem.c | |
parent | bea9b4798717b6f4e31085506dfc179eeb8dc17c (diff) | |
download | debian_htop-283707c5e5bc436b78ea23bf5500cb6b16a01148.tar.gz debian_htop-283707c5e5bc436b78ea23bf5500cb6b16a01148.tar.bz2 debian_htop-283707c5e5bc436b78ea23bf5500cb6b16a01148.zip |
Imported Upstream version 0.9upstream/0.9
Diffstat (limited to 'SignalItem.c')
-rw-r--r-- | SignalItem.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/SignalItem.c b/SignalItem.c index 4d6df58..fde1af2 100644 --- a/SignalItem.c +++ b/SignalItem.c @@ -1,6 +1,6 @@ /* htop - SignalItem.c -(C) 2004-2006 Hisham H. Muhammad +(C) 2004-2010 Hisham H. Muhammad Released under the GNU GPL, see the COPYING file in the source distribution for its full text. */ @@ -19,7 +19,7 @@ in the source distribution for its full text. typedef struct Signal_ { Object super; - char* name; + const char* name; int number; } Signal; @@ -47,7 +47,7 @@ static void Signal_display(Object* cast, RichString* out) { RichString_write(out, CRT_colors[DEFAULT_COLOR], buffer); } -static Signal* Signal_new(char* name, int number) { +static Signal* Signal_new(const char* name, int number) { Signal* this = malloc(sizeof(Signal)); Object_setClass(this, SIGNAL_CLASS); ((Object*)this)->display = Signal_display; |