Explorar el Código

Fix double use of stderr.

This patch fixes double use of stderr in fprintf.
Lisandro Damián Nicanor Pérez Meyer hace 13 años
padre
commit
01837b3fc1
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/docsis_encode.c

+ 2 - 2
src/docsis_encode.c

@@ -47,12 +47,12 @@ int encode_uint ( unsigned char *buf, void *tval, struct symbol_entry *sym_ptr )
   unsigned int int_value;
   union t_val *helper; /* We only use this to cast the void* we receive to what we think it should be */
   if ( buf == NULL ) {
-	fprintf(stderr, stderr, "encode_uint called w/NULL buffer!\n");
+	fprintf(stderr, "encode_uint called w/NULL buffer!\n");
 	exit (-1);
   }
 
   if ( tval == NULL  ) {
-	fprintf(stderr, stderr, "encode_uint called w/NULL value struct !\n");
+	fprintf(stderr, "encode_uint called w/NULL value struct !\n");
 	exit (-1);
   }
   helper = (union t_val *) tval;