From 5c97e31049a37ce5c4298f45d96715ddf7b6bfe2 Mon Sep 17 00:00:00 2001 From: rlar Date: Wed, 20 Aug 2014 21:29:45 +0200 Subject: [PATCH] cleanup, use '\0' and NULL --- src/frontend/inp.c | 2 +- src/spicelib/parser/inppas2.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/inp.c b/src/frontend/inp.c index 13d18a2bd..5088338cc 100644 --- a/src/frontend/inp.c +++ b/src/frontend/inp.c @@ -455,7 +455,7 @@ inp_spsource(FILE *fp, bool comfile, char *filename, bool intfile) /* all commands from within .control section */ } else { s = dd->li_line; - dd->li_line = 0; /* SJB - prevent line_free() freeing the string (now pointed at by wl->wl_word) */ + dd->li_line = NULL; /* SJB - prevent line_free() freeing the string (now pointed at by wl->wl_word) */ } controls = wl_cons(s, controls); } diff --git a/src/spicelib/parser/inppas2.c b/src/spicelib/parser/inppas2.c index 598866810..ddb6d5cef 100644 --- a/src/spicelib/parser/inppas2.c +++ b/src/spicelib/parser/inppas2.c @@ -253,7 +253,7 @@ void INPpas2(CKTcircuit *ckt, card * data, INPtables * tab, TSKtask *task) return; break; - case 0: + case '\0': break; default: