diff options
| -rw-r--r-- | .envrc | 1 | ||||
| -rw-r--r-- | shell.nix | 2 | ||||
| -rw-r--r-- | src/uci.c | 6 |
3 files changed, 3 insertions, 6 deletions
@@ -0,0 +1 @@ +use nix @@ -37,5 +37,5 @@ pkgs.mkShell { shellHook = if install_opt_deps then '' export LD_LIBRARY_PATH=${pkgs.lib.makeLibraryPath libraries}:$LD_LIBRARY_PATH export XDG_DATA_DIRS=${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}:${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}:$XDG_DATA_DIRS - '' else ''; + '' else ""; } @@ -11,11 +11,7 @@ void load_from_message(ucicmd* cmd, const char* message) { char token[MAX_TOKEN_SIZE]; int i = 0, k = 0; - while ( - message[i] != 0 && - message[i] != '\n' && - message[i] != '\r' - ) { + while (message[i] != 0 && message[i] != '\n' && message[i] != '\r') { if (message[i] != ' ') { token[k++] = message[i++]; continue; |
