Changeset 27096


Ignore:
Timestamp:
2011-06-02T16:38:01+02:00 (7 years ago)
Author:
florian
Message:

[package] soloscli: fix new lines in soloscli

If the string received from the ADSL firmware is missing \n, add it in.

Signed-off-by: Nathan Williams <nathan@…>

Location:
trunk/package/soloscli
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/soloscli/Makefile

    r25510 r27096  
    11# 
    2 # Copyright (C) 2006-2010 OpenWrt.org 
     2# Copyright (C) 2006-2011 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    1010PKG_NAME:=soloscli 
    1111PKG_VERSION:=0.11 
    12 PKG_RELEASE:=1 
     12PKG_RELEASE:=2 
    1313 
    1414PKG_SOURCE:=solos-pci-$(PKG_VERSION).tar.gz 
  • trunk/package/soloscli/patches/001-newline.patch

    r23619 r27096  
    11--- a/soloscli/soloscli.c 
    22+++ b/soloscli/soloscli.c 
    3 @@ -238,7 +238,7 @@ 
     3@@ -238,7 +238,11 @@ 
    44        } 
    55        if (strcmp(buf,pid) == 0) { 
    66 /*             printf("Sequence matches.\n"); */ 
    77-               printf("%s",bufp); 
    8 +               printf("%s\n",bufp); 
     8+               if(buf[(len-1)] == '\n'){ 
     9+                       printf("%s",bufp); 
     10+               } else { 
     11+                       printf("%s\n",bufp); 
     12+               } 
    913        } else { 
    1014                printf("Sequence incorrect.\n"); 
Note: See TracChangeset for help on using the changeset viewer.