|
@@ -221,8 +221,8 @@ int set_env(int argc, char** argv) {
|
|
|
int length, pos = 0;
|
|
|
//Verif les arguments
|
|
|
if (argc < 2) {
|
|
|
- error.print("too few arguments : 1 required, 0 given\n");
|
|
|
- return EXIT_FAILURE;
|
|
|
+ show_shm_data();
|
|
|
+ return EXIT_SUCCESS;
|
|
|
}
|
|
|
if (argc > 2) {
|
|
|
error.print("too many arguments : 1 required, %d given\n", argc - 1);
|
|
@@ -292,8 +292,8 @@ int set_local(int argc, char** argv){
|
|
|
int length, pos = 0;
|
|
|
//Verif les arguments
|
|
|
if (argc < 2) {
|
|
|
- error.print("too few arguments : 1 required, 0 given\n");
|
|
|
- return EXIT_FAILURE;
|
|
|
+ show_local_data();
|
|
|
+ return EXIT_SUCCESS;
|
|
|
}
|
|
|
if (argc > 2) {
|
|
|
error.print("too many arguments : 1 required, %d given\n", argc - 1);
|