Style fixes. - sam - An updated version of the sam text editor.
 (HTM) git clone git://vernunftzentrum.de/sam.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit fc7ada1716e13b59bb1d54d25eea39c84164a28c
 (DIR) parent bfcbe80fad43fc0123f5dc9b6aad27ab6f0d88df
 (HTM) Author: Rob King <jking@deadpixi.com>
       Date:   Thu, 11 Aug 2016 22:43:58 -0500
       
       Style fixes.
       
       Diffstat:
         libXg/latin1.c                      |      25 +++++++------------------
       
       1 file changed, 7 insertions(+), 18 deletions(-)
       ---
 (DIR) diff --git a/libXg/latin1.c b/libXg/latin1.c
       @@ -238,45 +238,34 @@ void
        initlatin(void)
        {
                FILE *keyboard = NULL;
       -        if (getenv("HOME"))
       -        {
       +        if (getenv("HOME")){
                        char path[1024] = {0};
       -                snprintf(path, 1023, "%s/.keyboard", getenv("HOME"));
       +                snprintf(path, sizeof(path) - 1, "%s/.keyboard", getenv("HOME"));
                        keyboard = fopen(path, "r");
                }
        
       -        if (!keyboard)
       -        {
       +        if (!keyboard){
                        mappings = latintab;
                        return;
                }
        
                mappings = calloc(MAPPING_MAX + 1, sizeof(struct latin));
       -        if (!mappings)
       -        {
       +        if (!mappings){
                        mappings = latintab;
                        fclose(keyboard);
                        return;
                }
        
                int j = 0;
       -        while (j < MAPPING_MAX)
       -        {
       +        while (j < MAPPING_MAX){
                        int count = fscanf(keyboard, " %c%c %hx%*[^\n]\n", &(mappings[j].c[0]), &(mappings[j].c[1]), &(mappings[j].l));
                        if (count == 3)
       -                {
                                j++;
       -
       -                }
       -                else if (count == EOF)
       -                {
       +                else if (count == EOF){
                                memset(&(mappings[j]), 0, sizeof(struct latin));
                                break;
       -                }
       -                else
       -                {
       +                } else
                                memset(&(mappings[j]), 0, sizeof(struct latin));
       -                }
                }
        
                fclose(keyboard);