src/stored/parse_bsr.c
static BSR *store_mediatype(LEX *lc, BSR *bsr)
{
   int token;

   token = lex_get_token(lc, T_STRING);
   if (token == T_ERROR) {
      return NULL;
   }
   if (!bsr->volume) {
      Emsg1(M_ERROR,0, _("MediaType %s in bsr at inappropriate place.\n"),
         lc->str);
      return bsr;
   }
   BSR_VOLUME *bv;
   for (bv=bsr->volume; bv; bv=bv->next) {
      bstrncpy(bv->MediaType, lc->str, sizeof(bv->MediaType));
   }
   return bsr;
}
/* Shove the MediaType in each Volume in the current bsr */
Shove the MediaType in each Volume in the current bsr
Shove the MediaType in each Volume in the current bsr
static BSR *store_mediatype(LEX *lc, BSR *bsr)
{
   int token;
   token = lex_get_token(lc, T_STRING);
   if (token == T_ERROR) {
      return NULL;
   }
   if (!bsr->volume) {
      Emsg1(M_ERROR,0, _("MediaType %s in bsr at inappropriate place.\n"),
         lc->str);
      return bsr;
   }
   BSR_VOLUME *bv;
   for (bv=bsr->volume; bv; bv=bv->next) {
      bstrncpy(bv->MediaType, lc->str, sizeof(bv->MediaType));
   }
   return bsr;
}
static BSR * store_mediatype ( LEX * lc , BSR * bsr ) { int token ; token = lex_get_token ( lc , T_STRING ) ; if ( token == T_ERROR ) { return NULL ; } if ( ! bsr -> volume ) { Emsg1 ( M_ERROR , 0 , _ ( " \n " ) , lc -> str ) ; return bsr ; } BSR_VOLUME * bv ; for ( bv = bsr -> volume ; bv ; bv = bv -> next ) { bstrncpy ( bv -> MediaType , lc -> str , sizeof ( bv -> MediaType ) ) ; } return bsr ; }
Shove the MediaType in each Volume in the current bsr
Shove the MediaType in each Volume in the current bsr