[hackers] [scc] Improve dumpstab() || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Sun, 19 Jul 2015 11:30:43 +0200 (CEST)

commit a0e2bdc94eb6fd60818d9278fe7ab23d223518ae
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Sun Jul 19 11:28:14 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Sun Jul 19 11:28:14 2015 +0200

    Improve dumpstab()
    
    Since stdio.h is already included is not needed include it again,
    and substitute fputs-puts by a fprintf call.

diff --git a/cc1/symbol.c b/cc1/symbol.c
index 183b552..f51410e 100644
--- a/cc1/symbol.c
+++ b/cc1/symbol.c
_AT_@ -18,14 +18,12 @@ static Symbol *head;
 static Symbol *htab[NR_SYM_HASH];
 
 #ifndef NDEBUG
-#include <stdio.h>
 void
 dumpstab(char *msg)
 {
         Symbol **bp, *sym;
 
- fputs(msg, stderr);
- putc('\n', stderr);
+ fprintf(stderr, "%s\n", msg);
         for (bp = htab; bp < &htab[NR_SYM_HASH]; ++bp) {
                 if (*bp == NULL)
                         continue;
Received on Sun Jul 19 2015 - 11:30:43 CEST

This archive was generated by hypermail 2.3.0 : Sun Jul 19 2015 - 11:36:15 CEST